-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry can't install opencv but pip can (RPI) #4073
Comments
What error do you get? |
|
I've found adding
to the pyproject.toml file allows the correct candidate to be installed provided the relevant system dependencies are present. |
@A-Telfer Might want to try increasing the verbosity. Might give you more insight into what's going on.
|
Thanks for the suggestions, I got it working
|
Without specifying the version it tries to install the latest pip version (4.5.2.52) and fails. The reason pip works on the RPI without specifying the version is that it seems to search piwheels first and install It would be nice if poetry could be configured to have the same behavior as pip |
Same problem with PyJSON5 https://pyjson5.readthedocs.io/en/latest/index.html, I tried • Installing pyjson5 (1.6.0.post1): Failed
RuntimeError
Unable to find installation candidates for pyjson5 (1.6.0.post1) But specifying version solves the problem. |
The error's not great, but the problem is that there's no sdist for pyjson5, and only windows builds, check out pypi. Poetry should probably do better here, and take that into account when doing resolving. PyJson5 should definitely upload an sdist though. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
poetry add opencv-python-headless
fails, butpip install opencv-python-headless
works.This is my first time using poetry and it's not going very well. I've spent a few hours searching around for solutions but no luck, the closest I've come is #3621 (I tried many of the solutions in the linked issues), I've tried installing different versions of opencv, upgrading pip, reinstalling poetry... nothing has worked so far.
The text was updated successfully, but these errors were encountered: