cannot install tensorflow and opencv-python at the same time due to wrongly detected numpy requirement #4451
Closed
3 tasks done
Labels
kind/bug
Something isn't working as expected
-vvv
option).Issue
I am trying to create
pyproject.toml
that would specify bothtensorflow
andopencv-python
as dependencies.This lead to `SolverProblemError
So, as
tensorflow
has very strict numpy requirement this must be 1.19. Assuming here this would python 3.8 the opencv would require minimum numpy 1.17.3 (so 1.19 would be fine).For some reason poetry thinks it requires 1.21 which is incorrect according to:
To reproduce:
First prepare environment from linked gist file
$ poetry install Creating virtualenv poetry-opencv-tensorflow-qJ4q1krR-py3.8 in /home/rskolasinski/.cache/pypoetry/virtualenvs Updating dependencies Resolving dependencies... (2.1s) Writing lock file Package operations: 36 installs, 0 updates, 0 removals • Installing certifi (2021.5.30) • Installing charset-normalizer (2.0.4) • Installing idna (3.2) • Installing pyasn1 (0.4.8) • Installing urllib3 (1.26.6) • Installing cachetools (4.2.2) • Installing oauthlib (3.1.1) • Installing pyasn1-modules (0.2.8) • Installing requests (2.26.0) • Installing rsa (4.7.2) • Installing six (1.15.0) • Installing google-auth (1.35.0) • Installing requests-oauthlib (1.3.0) • Installing absl-py (0.13.0) • Installing grpcio (1.34.1) • Installing google-auth-oauthlib (0.4.5) • Installing markdown (3.3.4) • Installing numpy (1.19.5) • Installing protobuf (3.17.3) • Installing tensorboard-plugin-wit (1.8.0) • Installing tensorboard-data-server (0.6.1) • Installing werkzeug (2.0.1) • Installing astunparse (1.6.3) • Installing flatbuffers (1.12) • Installing gast (0.4.0) • Installing google-pasta (0.2.0) • Installing h5py (3.1.0) • Installing keras-nightly (2.5.0.dev2021032900) • Installing keras-preprocessing (1.1.2) • Installing opt-einsum (3.3.0) • Installing tensorboard (2.6.0) • Installing tensorflow-estimator (2.5.0) • Installing termcolor (1.1.0) • Installing typing-extensions (3.7.4.3) • Installing wrapt (1.12.1) • Installing tensorflow (2.5.1)
and now try to add
opencv-python
packageThe text was updated successfully, but these errors were encountered: