Installing Python Interpreter on a computer

Installing Python Interpreter


Installing Python in Windows

Method 1



From https://www.python.org/download/releases/2.7.6 download appropriate Python 2.7.6 Windows Installer. (If that link doesn't work, check https://www.python.org/downloads/)

    1. Run the file

    2.Select install for all users or install just for me, click Next
       You'll see it installs under the C:\Python27 folder, click Next
       Click Next again for the 'Customize Python' step
       Click Finish

    3.Open Control Panel, then System

    4.Click 'Advanced system settings' on the left

    5.Click the 'Environment Variables' button

 Under 'System variables' click the variable called 'Path' then the 'Edit...' button. (This will set it for all users, you could instead choose to edit the User variables to just set python as a command prompt command for the current user)

 Without deleting any other text, add C:\Python27; (include the semi-colon) to the beginning of the 'Variable value' and click OK.
Click OK on the 'Environment Variables' window.

Open a new command prompt window type python, you will have python running in the command prompt. Note: command prompt windows open prior to setting the Environment Variable will not have the python command available.

Happy Coding!

-------------------------------------------------------------------------------

Installing Python in Ubuntu




By default, both python2 and python3 are installed.

As already mentioned, you can check your version with either:
python -V
or
python --version
or
apt-cache policy python
 
This will only show the version of python2, while on 14.04, python3 is installed as well. To see the version of python3, simply replace all occurrences of python in the commands above by python3

Happy learning!!! 

Comments

Popular posts from this blog

Introduction to C++ Programming Language

The Assembly Process Of 8086 Microprocessor-Two Pass Assembling Steps

Installing 8086 Assembler on a Computer