question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

can't install latest version of torchvision using pip, even though I have the latest dependencies

See original GitHub issue

šŸ› Describe the bug

First of all, the issue Iā€™m about to describe is similar to #4076, but I donā€™t have opencv installed and Iā€™m using pip. Also, Iā€™m not sure if I should create this issue on torchvision or pipā€™s Github page.

Iā€™m trying to install torchvision with pip. I use Arch Linux, and I have a recent version of torch (1.10.2) installed through Archā€™s python-pytorch-cuda package. I also have python 3.10.2 installed. When I try to install torchvision using pip, I expect it to install the latest version: 0.11.1. However, it will only install version 0.2.2.post3.

$ pip install --user torchvision
Requirement already satisfied: torchvision in /home/trevor/.local/lib/python3.10/site-packages (0.2.2.post3)
Requirement already satisfied: torch in /usr/lib/python3.10/site-packages (from torchvision) (1.10.2)
Requirement already satisfied: six in /usr/lib/python3.10/site-packages (from torchvision) (1.16.0)
Requirement already satisfied: numpy in /home/trevor/.local/lib/python3.10/site-packages (from torchvision) (1.22.1)
Requirement already satisfied: pillow>=4.1.1 in /home/trevor/.local/lib/python3.10/site-packages (from torchvision) (9.0.0)
Requirement already satisfied: typing_extensions in /usr/lib/python3.10/site-packages (from torch->torchvision) (4.0.1)

I have also tested this on another machine without CUDA support (I installed torch through Archā€™s python-pytorch package) and I get the same result.

Versions

Collecting environment informationā€¦ PyTorch version: 1.10.2 Is debug build: False CUDA used to build PyTorch: 11.5 ROCM used to build PyTorch: N/A

OS: Arch Linux (x86_64) GCC version: (GCC) 11.1.0 Clang version: 13.0.0 CMake version: version 3.22.2 Libc version: glibc-2.33

Python version: 3.10.2 (main, Jan 15 2022, 19:56:27) [GCC 11.1.0] (64-bit runtime) Python platform: Linux-5.16.3-arch1-1-x86_64-with-glibc2.33 Is CUDA available: True CUDA runtime version: 11.5.119 GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1080 Ti Nvidia driver version: 495.46 cuDNN version: Probably one of the following: /usr/lib/libcudnn.so.8.3.0 /usr/lib/libcudnn_adv_infer.so.8.3.0 /usr/lib/libcudnn_adv_train.so.8.3.0 /usr/lib/libcudnn_cnn_infer.so.8.3.0 /usr/lib/libcudnn_cnn_train.so.8.3.0 /usr/lib/libcudnn_ops_infer.so.8.3.0 /usr/lib/libcudnn_ops_train.so.8.3.0 HIP runtime version: N/A MIOpen runtime version: N/A

Versions of relevant libraries: [pip3] numpy==1.22.1 [pip3] torch==1.10.2 [pip3] torchvision==0.2.2.post3 [conda] Could not collect

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
oke-adityacommented, Jan 29, 2022

Aah this issue of torchvision 0.2.2 is very redundant. See #4273 #4665 #4648

Also CUDA 11.5 is not supported currently.

You can try with CUDA 11.3 as per instructions from docs https://pytorch.org/

pip3 install torch==1.10.2+cu113 torchvision==0.11.3+cu113 torchaudio==0.10.2+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
0reactions
pmeiercommented, Feb 1, 2022

So is this because Iā€™m using Python 3.10.2?

Yes. There is currently no version of PyTorch that supports Python 3.10. The next release in late February / early March will. I suggest you use something like pyenv or conda to create a virtual environment with Python < 3.10 and go from there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why the pip dependency has been satisfied but the latest ...
I have two pip package A and Bļ¼ŒA requires pytorch version==1.7.0ļ¼Œand B requires pytorch version >= 1.6.0. First I installed A,Ā ...
Read more >
torchvision - PyPI
1. pip install torchvision. Copy PIP instructions. Latest version. Released: Dec 15, 2022.
Read more >
How to Install PyTorch - Javatpoint
Installation on Windows using Conda ... Step 1: First, you have to install Anaconda's latest version in your system. To install Anaconda, you...
Read more >
Installation ā€” pytorch_geometric documentation
Find the CUDA version PyTorch was installed with: python -c "import torch; print(torch.version.cuda)" >>> 11.6. Install the relevant packages: pip install ...
Read more >
CAN'T Install Stable Diffusion? Try THIS! - YouTube
As promised, here is a troubleshooting video on all the most common errors and bugs that people encounter when they try to install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found