This tutorial will describe how to install both Python versions (2.7 and 3.6) on a Windows 10 environment. Additionally, how to add python path in windows 10 will be discussed. “PATH is an environment variable on Unix-like operating systems, DOS, OS/2, and Microsoft Windows, specifying a set of directories where executable programs are located”.
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
commented May 25, 2015
I checked but for pip 7.0.1 the Python 2.6 is still supported. Upgarding to python 2.7 is currently not an option. Running python get_pip.py on a fresh install of 2.6.5 (32bit) on a clean windows 7 (32bit) gives aninsecure platform warning in urllib3 and doesn't install. There are 2 workarounds according to the urllib3 page. One is to disable warnings but for that you need to import urllib3 and that is hidden in the data section of get_pip.py. The other requires the use of pip to install certifi, I don't have a working pip, so that is not a route I can take. Starting python -W ignore get_pip.pydoes suppress the warnings, but still could not get me a working pip`.Installing pip with easy_install works, but the resulting pip cannot install from PyPI. |
changed the titlepython 2.6.5 on windows cannot install get_pip.pyMay 25, 2015
commented May 26, 2015
From urllib3/urllib3#615, I think that this is actually a problem with the Python.org installers for 2.6.5 on Windows bundling an OpenSSL that's just too old to communicate with PyPI. I'm going to close this, but if a newer version of Python (maybe 2.6.9, but I'd try 2.7.10 too) doesn't resolve this, then we can re-open it. |
closed this May 26, 2015
commented Dec 20, 2017
Hi Python only started bundling pip with Python 3.4. For earlier versions, pip needs to be “bootstrapped” as described in the Python Packaging User Guide to bellow link. link |
bot commented Jun 2, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
bot added the S: auto-locked label Jun 2, 2019
bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.
Active4 months ago
I want to be able to run Python commands from the Windows CMD. However, if I don't specify Python's full path for each command, I get an error saying 'Python is not recognized as an internal or external command, operable program or batch file.'
How do I add Python to the Windows PATH permanently?
Steven M. Vascellaro5,4102222 gold badges6262 silver badges111111 bronze badges
davewisedavewise
migrated from stackoverflow.comMay 19 '10 at 22:01
This question came from our site for professional and enthusiast programmers.
5 Answers
For Windows 10/8/7:
- Open
System Properties
(Right clickComputer
in the start menu, or use the keyboard shortcut Win+Pause) - Click
Advanced system settings
in the sidebar. - Click
Environment Variables...
- Select
PATH
in theSystem variables
section - Click
Edit
- Add Python's path to the end of the list (the paths are separated by semicolons). For example:
For Windows XP:
- Open
System Properties
(Type it in the start menu, or use the keyboard shortcut Win+Pause) - Switch to the
Advanced
tab - Click
Environment Variables...
- Select
PATH
in theSystem variables
section - Click
Edit
- Add Python's path to the end of the list (the paths are separated by semicolons). For example:
- Test on a new terminal window or if using an integrated terminal within a text editor, close and restart your editor or the changes won't be applied.
12.6k77 gold badges3737 silver badges5656 bronze badges
Python 2.6 Windows 7
Michael MrozekMichael Mrozek
For anyone trying to achieve this with Python 3.3+, the Windows installer now includes an option to add python.exe to the system search path. Read more in the docs.
Andreas BergströmAndreas Bergström
As seen in the Python documentation:
Download Python 2.6 Windows 64
Windows has a built-in dialog for changing environment variables (following guide applies to XP classical view): Right-click the icon for your machine (usually located on your Desktop and called “My Computer”) and choose Properties there. Then, open the Advanced tab and click the Environment Variables button.
In short, your path is:
My Computer ‣ Properties ‣ Advanced ‣ Environment Variables In this dialog, you can add or modify User and System variables. To change System variables, you need non-restricted access to your machine (i.e. Administrator rights).
Steven M. Vascellaro5,4102222 gold badges6262 silver badges111111 bronze badges
vitorbalvitorbal
- Click on the windows button to start a search
- type in 'system env' and click on the 'edit system environment variables'
- Now click on the advanced tab on the top
- At the bottom click the button that says 'environment variables'
- Now on the 'user variables'your user name' box at the top of the windows click on path then edit
- This should lead to another window where you want to click 'new' and type in the commands: 'C:Python27' and 'C:Python27scripts'
- Python should now work on command prompt
Just A Regular GuyJust A Regular Guy
Right-click on My Computer, choose Properties. Then find the Environment Variables button (on Win7, it's under the Advanced tab; I forget where it is on other versions of Windows). Click that, and under System variables, edit the Path one.
AmberAmber