简体   繁体   中英

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. The current workaround is to use numpy 1.19.3 instead. 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.

Because of this, I cannot directly pin numpy to 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?

The available dependency relations include !=

numpy!=1.19.4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM