例如 pip install flask
如果你的网络是通过代理,还需要输入密码
运行 pip install --proxy flask
就可以了
username 为你的用户名
password 为你的密码
proxyIP 为你的代理地址
proxyIP 为你的代理端口号
例:
python3/bin/pip3 install flask --proxy -i --trusted-host mirrors.aliyun.com
Collecting flask
Downloading (91kB)
100% |████████████████████████████████| 92kB 4.7MB/s
Collecting itsdangerous>=0.24 (from flask)
Downloading
Collecting Werkzeug>=0.14 (from flask)
Downloading (322kB)
100% |████████████████████████████████| 327kB 20.4MB/s
Collecting Jinja2>=2.10 (from flask)
Downloading (126kB)
100% |████████████████████████████████| 133kB 48.3MB/s
Collecting click>=5.1 (from flask)
Downloading (81kB)
100% |████████████████████████████████| 81kB 34.2MB/s
Collecting MarkupSafe>=0.23 (from Jinja2>=2.10->flask)
Downloading
Installing collected packages: itsdangerous, Werkzeug, MarkupSafe, Jinja2, click, flask
Successfully installed Jinja2-2.10 MarkupSafe-1.1.0 Werkzeug-0.14.1 click-7.0 flask-1.0.2 itsdangerous-1.1.0
说明:-i 指定pip资源地址
pip install Flask -i -- trusted-host pypi.douban.com
阅读(5449) | 评论(0) | 转发(0) |