[英]How to tell to tox use trusted host and index?
I use the following usage for pip3 to install modules from my host:我使用 pip3 的以下用法从我的主机安装模块:
pip3 install tox -i http://myhost/sample+ --trusted-host
I downloaded a bog code.It uses tox
for installing modules.我下载了一个沼泽代码。它使用tox
来安装模块。
How can I tell to tox
use myhost for installing modules?如何告诉tox
使用 myhost 安装模块?
You can use the install_command option from tox
.您可以使用tox
中的install_command选项。
This should result in a command like this within your tox.ini configuration:这应该会在您的 tox.ini 配置中生成如下命令:
[testenv:your_env]
install_command=pip install --index-url=http://myhost/sample+ --trusted-host=http://myhost/sample+ {opts} {packages}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.