Replies: 1 comment 7 replies
-
It's hard to understand what is going on on your machine without logs -- however, on my machine, Numpy must be built from source on 3.10 as 1.19.5 is selected and there are no 3.10 wheels for that version. I suspect in general you are fighting wheel availability -- logs would be welcome to further debug this. However, keep in mind that in general Poetry will pick the most compatible version of a dep (that is as new as possible), regardless of available wheels, which it does not consider a factor in solving. If you care about the version of a transient dep (because of wheels) you need to tell Poetry that by adding a constraint. You can use a group to categorize and sort your dependencies. |
Beta Was this translation helpful? Give feedback.
-
(using Poetry 1.2.1)
I have a project which I publish to pypi, which has the following dependencies
I can pip install my project with python 3.10 - it works fine. However I can't seem to get a poetry environment for development to install properly. The steps I have taken are:
(These steps work perfectly for python 3.6 to 3.9)
With 3.10 resolution works, but during installation it complains about the numpy version.
So I changed the numpy dependency to this:
Once again it resolves ok, but then complains about matplotlib. So I update those dependencies and repeat. Next it complains about pandas. So I update those dependencies. By now the dependencies look like this
Once again it resolves ok, but then complains about scipy version during install. Scipy isn't even one of my direct dependencies - do I have to now add it as one to fix this issue? Why is the resolution process producing "solves" which won't work?
Any help would be appreciated. I've sunk about 10 hours into trying to sort this out.
Beta Was this translation helpful? Give feedback.
All reactions