在CentOS 7上安装Python 2.7以及virtualenv环境
通过Yum安装(EPEL源)
yum -y update
yum -y install python-pip通过pip脚本安装
# First get the script:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# Then execute it using Python 2.7 and/or Python 3.6:
python2.7 get-pip.py
#python3.6 get-pip.py
# With pip installed you can now do things like this:
pip2.7 install [packagename]
pip2.7 install --upgrade [packagename]
pip2.7 uninstall [packagename]参考
Last updated