[英]Ignore specific package version when running setup.py
I'm running into the error discussed here when running setup.py: numpy 1.19.4 fails to install due to a windows bug.我在运行 setup.py 时遇到了此处讨论的错误:numpy 1.19.4 由于 windows 错误而无法安装。 The current workaround is to use numpy 1.19.3 instead.当前的解决方法是改用 numpy 1.19.3。 However, I'm trying to run a setup.py file that doesn't list numpy directly as a dependency, but uses several packages that has numpy as a sub-dependency.但是,我正在尝试运行一个 setup.py 文件,该文件没有将 numpy 直接列为依赖项,而是使用了几个将 numpy 作为子依赖项的包。
Because of this, I cannot directly pin numpy to 1.19.3.因此,我不能直接将 numpy 固定到 1.19.3。 In this scenario, is there a simple way to get the install script working?在这种情况下,是否有一种简单的方法可以让安装脚本正常工作? In other words: how can I modify the setup.py file so that it won't install any package (versions) that has numpy 1.19.4 as a dependency?换句话说:如何修改 setup.py 文件,使其不会安装任何具有 numpy 1.19.4 作为依赖项的 package (版本)?
The available dependency relations include !=
可用的依赖关系包括!=
numpy!=1.19.4
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.