简体   繁体   中英

How to tell to tox use trusted host and index?

I use the following usage for pip3 to install modules from my host:

pip3 install tox -i http://myhost/sample+ --trusted-host 

I downloaded a bog code.It uses tox for installing modules.
How can I tell to tox use myhost for installing modules?

You can use the install_command option from tox .

This should result in a command like this within your tox.ini configuration:

[testenv:your_env]
install_command=pip install --index-url=http://myhost/sample+ --trusted-host=http://myhost/sample+ {opts} {packages}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM