参考:https://www.zhihu.com/question/21653286
pope安装的是python36
#yum install python36-pip
# python36 -m pip -V
pip 8.1.2 from /usr/lib/python3.6/site-packages (python 3.6)
之后 比如安装依赖
# python36 -m pip install requests
查看3的安装列表
# python36 -m pip list
certifi (2018.11.29)
chardet (3.0.4)
idna (2.8)
pip (8.1.2)
requests (2.21.0)
setuptools (39.2.0)
urllib3 (1.24.1)
pope安装的是python36
#yum install python36-pip
# python36 -m pip -V
pip 8.1.2 from /usr/lib/python3.6/site-packages (python 3.6)
# python36 -m pip install requests
查看3的安装列表
# python36 -m pip list
certifi (2018.11.29)
chardet (3.0.4)
idna (2.8)
pip (8.1.2)
requests (2.21.0)
setuptools (39.2.0)
urllib3 (1.24.1)
查看2的列表,依然用默认的就ok
# pip list
Package Version
-------------------------------- ---------
altgraph 0.16.1
asn1crypto 0.24.0
certifi 2018.4.16
cffi 1.11.5
chardet 3.0.4
configobj 4.7.2
cryptography 2.3.1
decorator 3.4.0
dis3 0.1.2
dnspython 1.15.0
elasticsearch 1.9.0
enum34 1.1.6
future 0.17.1
idna 2.7
iniparse 0.4
ipaddress 1.0.22
IPy 0.75
javapackages 1.0.0
lxml 3.2.1
macholib 1.11
MySQL-python 1.2.5
pefile 2018.8.8
没有评论:
发表评论