From:https://www.cnblogs.com/Mrhuangrui/p/7722531.html
Python 包管理工具 pip 安装 和 使用: https://blog.csdn.net/freeking101/article/details/53445982
安装 Python3
- 下载源码包
https://www.python.org/downloads/ - 解压(以3.64版本为例)
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
tar -zxvf Python-3.6.4.tgz
cd Python-3.6.4 - 安装
./configure --prefix=/usr/local/python3
make && make install - 添加软链接
ln -s /usr/local/python3/bin/python3 /usr/bin/python3 - 安装第三方库
yum install python-pip
pip install --upgrade pip
python3 -m pip freeze
python3 -m pip install redis
python3 -m pip install pymongo
python3 -m pip install pymysql
python3 -m pip install configparser
豆瓣源:
pip Install:pip install -i https://pypi.douban.com/simple/
安装 pip3 ( centos )
install pip3 for python 3.x:https://www.cnblogs.com/wenchengxiaopenyou/p/5709218.html