nexus pip proxy config

nexus pip proxy config

 

config for linux

  • touch config
touch ~/.pip/pip.conf
  • content
[global]
index-url = http://<nexusip:port>/repository/aliyun-pip/simple
[install]
trusted-host=<nexusip>

or with command

pip2 && pip3

 pip install docker-compose -i http://<nexusip:port>/repository/aliyun-pip/simple --trusted-host  <nexusip>
 pip3 install docker-compose -i http://<nexusip:port>/repository/aliyun-pip/simple --trusted-host  <nexusip>

https://help.sonatype.com/repomanager3/formats/pypi-repositories

原文地址:https://www.cnblogs.com/rongfengliang/p/11807455.html