-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Conda install incompatible with opencv for python 3.9 #3207
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
Comments
|
There are similar problems for Python 3.8. I also saw that installing a working opencv and PyTorch GPU (from the |
Do you also get the same error downloading it via
I had the same problem with python
|
Have the same problem, can't install latest torchvision releases (which requires |
Same issue here, installing opencv using pip as @mrgransky said solved. |
As of $ conda search --info torchvision=0.9.1
torchvision 0.9.1 py37_cu111
----------------------------
file name : torchvision-0.9.1-py37_cu111.tar.bz2
name : torchvision
version : 0.9.1
build : py37_cu111
build number: 0
size : 25.9 MB
license : BSD
subdir : linux-64
url : https://conda.anaconda.org/pytorch/linux-64/torchvision-0.9.1-py37_cu111.tar.bz2
md5 : d47215411c0bc1ca792d141584ec341a
timestamp : 2021-03-25 04:11:13 UTC
dependencies:
- cudatoolkit >=11.1,<11.2
- ffmpeg >=4.2
- jpeg <=9b
- libpng
- numpy >=1.11
- pillow >=4.1.1
- python >=3.7,<3.8.0a0
- pytorch 1.8.1 Thus the upgrade to $ conda search --info torchvision=0.8.1
torchvision 0.8.1 py38_cu110
----------------------------
file name : torchvision-0.8.1-py38_cu110.tar.bz2
name : torchvision
version : 0.8.1
build : py38_cu110
build number: 0
size : 17.9 MB
license : BSD
subdir : linux-64
url : https://conda.anaconda.org/pytorch/linux-64/torchvision-0.8.1-py38_cu110.tar.bz2
md5 : 904400aebba9b6b5a485d36931205324
timestamp : 2020-10-27 20:39:32 UTC
dependencies:
- cudatoolkit >=11.0,<11.1
- jpeg
- libpng
- numpy >=1.11
- pillow >=4.1.1
- python >=3.8,<3.9.0a0
- pytorch 1.7.0
Update:
So, |
Pinging @seemethere and @andfoy as this looks like a conflict which would be good to address |
We can try without a pinned version of jpeg, the previous pinning was due to a dependency issue I was seeing back when we first added Python 3.9, perhaps the issue has resolved itself by this point |
I think there's still an issue when installing opencv from conda and pytorch related packages. |
Similiar problem. When I install pytorch with conda like this:
Then I install opencv:
The opencv installation will force uninstall pytorch-gpu version, but install a pytorch-cpu version. |
Uh oh!
There was an error while loading. Please reload this page.
🐛 Bug
Cannot install any version of torchvision newer than 0.2.2 with opencv for python 3.9
To Reproduce
Contents of
~/.condarc
:On the command line:
This installs torchvision version 0.2.2.
Replacing the last line with
produces the error
Expected behavior
Torchvision version 0.8.2 should be selected for installation.
If version is explicitly specified, packages should get installed without error.
Environment
OS: Ubuntu 20.10 (x86_64)
GCC version: (Ubuntu 10.2.0-13ubuntu1) 10.2.0
Clang version: 11.0.0-2
CMake version: version 3.16.3
Python version: 3.9 (64-bit runtime)
GPU models and configuration: GPU 0: GeForce 930MX
Nvidia driver version: 450.80.02
The text was updated successfully, but these errors were encountered: