Skip to content
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

Incompatible torch and torchvision version numbers in requirements file #739

Closed
HarshSharma12 opened this issue Jan 23, 2020 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@HarshSharma12
Copy link
Contributor

🐛 Bug

requirements.txt lists torch and torchvision requirements as follows

torch>=1.1
torchvision>=0.4.0

which leads to pip installing torchvision 0.4.2 and torch 1.4.0. These are incompatible with each other. Running pip -r requirements.txt throws the following error

ERROR: torchvision 0.4.2 has requirement torch==1.3.1, but you'll have torch 1.4.0 which is incompatible.

To Reproduce

Steps to reproduce the behavior:

  1. Go to lightning root directory
  2. Run 'pip -r requirements.txt'
  3. See error

Expected behavior

Pip should be able to install all requirements successfully.

Environment

PyTorch version: 1.3.1
Is debug build: No
CUDA used to build PyTorch: 10.1.243

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: Could not collect

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.1.243
GPU models and configuration: GPU 0: GeForce RTX 2080 SUPER
Nvidia driver version: 430.64
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5

Versions of relevant libraries:
[pip] numpy==1.18.1
[pip] pytorch-lightning==0.6.0
[pip] torch==1.3.1
[pip] torchfile==0.1.0
[pip] torchvision==0.4.2
[conda] pytorch-lightning 0.6.0 dev_0
[conda] torch 1.3.1 pypi_0 pypi
[conda] torchfile 0.1.0 pypi_0 pypi
[conda] torchvision 0.4.2 pypi_0 pypi

@HarshSharma12 HarshSharma12 added the bug Something isn't working label Jan 23, 2020
@Borda
Copy link
Member

Borda commented Jan 24, 2020

I am not sure if we are able to set specific combinations of toch and torchvision, do you have any suggestion? @williamFalcon @neggert we still need to dig to torchvision==0.5 #694

@jerpint
Copy link

jerpint commented Feb 2, 2020

I'm having a similar error show up from pip when upgrading torchvision==0.5.0 and pytorch==1.4.0:

ERROR: pytorch-lightning 0.6.0 has requirement torchvision<0.5,>=0.4.0, but you'll have torchvision 0.5.0 which is incompatible.

I feel like I can probably safely ignore this?

@popcornell
Copy link

Reproduced this error too on my side.

@Borda
Copy link
Member

Borda commented Feb 10, 2020

We are dropping torchvision from dependences... #797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants