简体   繁体   English

运行 setup.py 时忽略特定的 package 版本

[英]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.

相关问题 运行 setup.py 时更改包名 - Change package name when running setup.py 当setup.py与Python版本3解释器一起运行时,如何构建py2 wheel软件包? - How do I build a py2 wheel package, when setup.py runs with a Python version 3 interpreter? 与 setup.py 和包共享包版本的正确方法是什么? - What is the correct way to share package version with setup.py and the package? 使用 package 的 setup.py 安装版本时出现 ModuleNotFoundError,但不是本地 - - ModuleNotFoundError when using setup.py install version of package, but not locally- 在将包上传到 pypicloud 之前更新 setup.py 中的版本 - Update version in setup.py before uploading package to pypicloud 限制需求的package版本,setup.py中设置复杂 - Restrict requirement's package version with complicated settings in setup.py 使用`setup.py`安装软件包后运行`chmod` - Running `chmod` after installing a package using `setup.py` Python package 结构,setup.py 用于运行单元测试 - Python package structure, setup.py for running unit tests Python setup.py - 运行 setup.py install 时不要构建轮子 - Python setup.py - dont build wheel when running setup.py install Python setup.py - 手动运行 setup.py 时未安装命令 - Python setup.py - Command not being installed when running setup.py manually
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM