LinuxMint19.1 XFCE
1 安装更新pip3
sudo apt install python3-pip
pip3 install pip
2 修复错误
sudo vim /usr/bin/pip3
-----
#!/usr/bin/python3
# GENERATED BY DEBIAN
import sys
# Run the main entry point, similarly to how setuptools does it, but because
# we didn't install the actual entry point from setup.py, don't use the
# pkg_resources API.
from pip import __main__
if __name__ == '__main__':
sys.exit(__main__._main())
-----
3 安装virtualenv
sudo pip3 install virtualenv
virtualenv
4. 配置豆瓣源环境变量
echo "export PYDOUBAN=https://pypi.douban.com/simple/" >> ~/.zshrc
5 适用豆瓣源下载模块
sudo pip3 install -i $PYDOUBAN wheel
6 下载python3-dev包
apt install python3-dev
7 安装sanic测试
pip3 install -i $PYDOUBAN sanic
网友评论