pip
1. 安装
https://pip.pypa.io/en/stable/getting-started/
wget https://bootstrap.pypa.io/get-pip.py python3 get-pip.py
使用:
python3 -m pip install sampleproject-1.0.tar.gz python3 -m pip uninstall sampleproject
2. 配置
配置文件位置: $HOME/.config/pip/pip.conf
[global] timeout = 60 index-url = http://pypi.douban.com/simple trusted-host = pypi.douban.com
单次安装可以在命令行指定: pip install tornado -i https://pypi.douban.com/simple