python缓存代理服务器安装和配置:
pip install -U devpi-server
devpi-server  –host=0.0.0.0 –start

使用
pip –trusted-host 172.20.11.12 install -i  http://172.20.11.12:3141/root/pypi/ simplejson

还可以通过配置文件,就不用每次输入超长命令了
mkdir $HOME/.pip
vi $HOME/.pip/pip.conf

[global]
index-url=http://172.20.11.12:3141/root/pypi/+simple/
trusted-host=172.20.11.12

[search]
index = http://172.20.11.12:3141/root/pypi/

Categories: 未分类

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *