Does win7 come with python?
#Windows7 does not come with Python. You can choose to install Python2 or Python3, or you can install them all.
1. Install python2.7 and python3.5
Go directly to the official website https://www.python.org/ to download and install them.
2. The installation is relatively simple, just click on the exe file and continue to the next step (Note: There is a choice whether to add environment variables during installation. If you choose yes, you will not need to add environment variables later)
If not, please add environment variables. Computer properties---->Advanced system settings---->Environment variables--->path in system variables---->Edit and add the path to install python (for example, E:\python;E: \python\script)
3. Modify the python.exe file in the python2.7 installation directory and rename it to python2.exe. (In this way, run python2.7 in the command window and enter python2, run python3.5 and enter python OR python3)
4. Open the command window and enter python2
Enter python3
You can see the installed version respectively (the installation was initially successful)
5.pip installation
Looked at the Scripts folder in the installation directory, and there are pips in each. (Both py2.7 and py3.5 come with pip)
6. How to use pip
python2 -m pip install XXX
python3 -m pip install XXX or python -m pip install xxx
7. Source code installation
Download the source code installation package, and then unzip it.
Open the cmd command window and enter the unzipped package (setup.py is inside)
Run python setup.py install
python2 setup.py install
The above is the detailed content of Does win7 come with python?. For more information, please follow other related articles on the PHP Chinese website!