1. Download the installation package
1
2
3
|
https:
/
/
www.python.org
/
ftp
/
python
/
2.7
.
14
/
python
-
2.7
.
14.amd64
.msi
# 2.7安装包
https:
/
/
www.python.org
/
ftp
/
python
/
3.6
.
4
/
python
-
3.6
.
4
-
amd64.exe
# 3.6安装包
|
2. Install python3.6
1
|
增加环境变量
|
3. In the command-line test
4. Installation python2.7
5. python2 added environment variable
1
|
C:\Python27\Scripts\;C:\Python27\;
|
6. C: \ python.exe and pythonw.exe under Python27 directory to python2.exe and pythonw2.exe
7. C: \ python.exe and pythonw.exe under Python36 directory to python3.exe and pythonw3.exe
8. At this time, the command line input python2 python3 python3 Representative Representative python2
Two. Pip installation
1
2
3
4
5
6
7
8
9
|
#在cmd上执行
python3
-
m pip install
-
-
upgrade pip
-
-
force
-
reinstall
python2
-
m pip install
-
-
upgrade pip
-
-
force
-
reinstall
#查看pip版本
pip3
-
V
pip2
-
V
|