使用docker+devpi搭建本地pypi源的方法

2020-06-17 06:10:33易采站长站整理
 http://<host_ip>:3141
查看 pip 本地源服务器状态。

若要临时使用可以使用 pip install 的 –index 和 –trusted-host 选项


pip install --index http://<host_ip>:3141/root/public/+simple/
--trusted-host <host_ip>

或者修改 pip.conf 文件永久使用


# vim ~/.pip/pip.conf
[global]index_url = http://<host_ip>:3141/root/public/+simple/
trusted-host = <host_ip>
[search]index = http://<host_ip>:3141/root/public/

您可能感兴趣的文章:使用豆瓣提供的国内pypi源