[英]getting the error for installing packages using “python setup.py install”
[英]Possible to specify artifactory to install python packages from when using pip and distutils setup.py?
我有一个与distutils打包在一起的python程序,在install_requires
部分下的setup.py文件中指定了许多依赖项。
到目前为止,这些python软件包均来自Internet上的默认位置。 但是,现在,我想使用我们的内部Artifactory来获取所有python包,并且如果在内部Artifactory中未找到依赖项,则会引发错误。
是否可以更改配置选项或ENV变量以迫使distutils从内部工件获取软件包?
我还想在某些虚拟环境中强制执行此要求,以使pip不会安装软件包,除非可以从内部Artifactory安装它
因此,您基本上希望将pip配置为将内部Artifactory用作index-url
。
您也可以尝试使用allow-hosts限制easy_install
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.