如何告诉TOX使用受信任的主机和索引?

发布于 2025-01-28 23:36:51 字数 164 浏览 3 评论 0原文

我使用以下pip3用法从主机安装模块:

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

我下载了一个沼泽代码。 如何告诉tox使用MyHost安装模块?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤君无依 2025-02-04 23:36:51

您可以使用 install_command 来自tox 。

这应该在您的tox.ini配置中产生这样的命令:

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

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}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文