Open zmeir opened 2 hours ago
Hi!
I think the direct problem you are facing is that numpy 1.17.3 doesn't work with Python 3.10 (it has wheels for 3.5 to 3.8); on this Python version, you likely need to use are higher numpy version (or conversely, test on an older Python version).
I'm surprised that lowest-direct
doesn't select a higher numpy, is one of your dependencies putting an upper bound on numpy? One option you could try is adding a constraint such numpy>=x.y.z; python_version >= "3.9"
instead of a dependency, this way you're forcing a higher version that is compatible with Python 3.10 without constraining your dependents.
Hi,
First of all - thanks for this amazing tool! I've only been using it for a few weeks and it's already making my workflow so much faster and simpler!
I ran into this error trying to install some old version on
numpy
withuv pip install
:ModuleNotFoundError: No module named 'distutils.msvccompiler'
Full example:
I believe this is related to these issues:
However, I don't know how to resolve this.
To elaborate, my full use-case is that I'm building a wheel for my project and I want to test it with the lowest and highest possible dependency versions.
In order to test the lowest dependency versions, I set up my test env with
uv sync --resolution lowest-direct
.Since one of my dependencies has a transient dependency on
numpy==1.17.3
in its lowest version range, I am faced with this error. I can add the latest numpy version to my project dependencies which would fix this error, but that will be too constricting for my package, since there is nothing preventing my code from working with lower numpy versions, it's just that's I'm unable to build them properly...Would very much appreciate your assistance.
Thanks.