2021年6月18日 星期五

pip 自訂來源

1.編輯 ~/.pip/pip.conf
[global]
index-url = https://aaa.bbb.ccc/simple
[install]
trusted-host = aaa.bbb.ccc

2.命令列指定
pip install xxx -i https://aaa.bbb.ccc/simple --trusted-host aaa.bbb.ccc

沒有留言: