Installing Python 2.7.8 in Windows 8.1 + Screenshots

Posted: August 7, 2014 in Python, Windows
Tags: , , , , , , , , , ,

This is a simple guide on installing Python 2.7.8 in Windows 8.1 operating system with screenshots.

Requirements:

  1. Windows 8.1 / Windows 8 OS
  2. Python 2.7.8 : Download Link (~15.92 MB)

Step 1: Installation

Download the python setup file mentioned above and run the installer.

 

installer window picture

Click “Next”.

2

Leave it to the defaults and then click “Next“,

installation directory picture

Now in customize screen, you may see a RED X next to “Add python.exe to Path”.

Customization Screen picture

Click on the RED X and then select the first option option “Will be installed on local hard drive”.

custom selection picture

So finally you will have the below screen:

customization final

Then click on “Next“, and follow the on screen instructions:

progress picture

Finally, click on “Finish“.

python installation complete

 

Step 2: Running the Python Interpreter.

Now, to open Python Interpreter in your Windows 8.1 machine, Press Windows key+X (Press Windows key and while pressing CTRL , tap the letter R once) , you will see a context menu (shown below), click on “Command Prompt (Admin)“. (Click Yes if prompted from User Account Control)

cmd run as admin picture

You will now see the windows command prompt window as shown below:

command prompt admin window picture

Now, type python and then “Enter” in your keyboard to start using the DOS interactive python interpreter.

12

Now, you test it by writing a simple print statement, such as:

print “Hi EXTR3ME”

and then hit “Enter“, you will see the output in the next line as shown below:

python dos shell output

You should have by now installed Python 2.7.8 in your Windows 8/8.1 systems and also written a sample program to test it.

Hope this helps. Feel free to leave a comment below or if have any further queries. 

Don’t forget to subscribe to get future updates!🙂

Regards
ΞXΤЯ3МΞ

Comments
  1. Marcia says:

    Extremely helpful if not lifesaving!
    Thank you so much!

  2. Marcia says:

    Can’t run the file saved as firstprog.py on the desktop. I can type >>>hello world however.

    • ΞXΤЯ3МΞ says:

      @Marcia, What is the error message you get when you save the file to the desktop? You can try saving the file to an alternative location like your Documents folder and see if you are able to save the file.

      • Marcia says:

        Thank you for your reply. I can save the file as firstprog.py on the desktop and I see it in the desktop DIR. When I try to run it, it takes me back to the editor. There is no error message.

      • ΞXΤЯ3МΞ says:

        @Marcia, If the program opens up in the editor, you can press F5 to run the program.

        But, if you want it to automatically run the program instead of opening up in the editor, you can try the following:

        Right click on firstprog.py, Select Properties. Then Click on “Change” next to “Opens with:” and choose ‘python’ in the list . If python is not there in the list, click “More options” and scroll down and click “Look for another app in the PC” and then go to your python install directory (for example: C:\Python27\) and then click “python.exe” and click “Open”.

        It should now run the program directly but it will run and quit as soon as the program completes or the output is displayed.

        [Optional: If you need the see the output and quit the program only after you hit any key, you can add the following line at the end of your code:]

        raw_input (“Press any key to continue..”)

        Hope this helps. Do let me know if you need any help.

        Regards
        ΞXΤЯ3МΞ

  3. thanks for the tips! Very helpful!

  4. leilani says:

    Should I uninstall the 2.7 or 2.10 first. also before I was not the administrative is this going to make it easier for me. to catch up

  5. iamahmoud90 says:

    Thanks for the tip ..its running

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s