pypi software source-pip


How to use pypi software source ?
pip install -i http: // xxxxxx --trusted-host xxxxxxx PACKAGE1 PACKAGE2 ...

Or modify the default configuration, edit ~ / .pip / pip.conf
[global]

# Sync from official source https://pypi.python.org, sync once every 10 minutes
index-url = http: // xxxxxx

# Internal private pypi service
extra-index-url = http: // xxxxxx

[install]
trusted-host = xxxxxx

If you want to upload a package to the internal pypi service
pip install pypi-uploader
pypiupload packages $ {package_path} -i http: // xxxxxx

Guess you like

Origin www.cnblogs.com/gtea/p/12672773.html