# PyTorch pip installation not working

**URL:** <https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884>\
**Category:** windows\
**Created:** [October 22, 2021, 5:16pm UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884 "2021-10-22T17:16:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrippelZ](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@TrippelZ](https://discuss.pytorch.org/u/TrippelZ)\
**Post date:** [October 22, 2021, 5:16pm UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884/1 "2021-10-22T17:16:30Z")

</div>

Trying to install PyTorch with the given command from the homepage with Stable, Windows, Pip, Python and Cuda 11.3.

The command I get is  
`pip3 install torch==1.10.0+cu113 torchvision==0.11.1+cu113 torchaudio===0.10.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html`

I get the error

```auto
ERROR: Could not find a version that satisfies the requirement torch==1.10.0+cu113 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.10.0+cu113

```

I have Python 3.10.0 installed, in 64 bit (same as my system) with Pip installed with it.  
I have CUDA 11.5 installed from NVIDIA’s site.

I have looked multiple places and found no solution, please help.

---

<div class="post-metadata">

**Author:** ![suegi](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/suegi/32/41109_2.png) [@suegi](https://discuss.pytorch.org/u/suegi)\
**Post date:** [October 22, 2021, 5:19pm UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884/2 "2021-10-22T17:19:02Z")

</div>

The issue is with your python version. You need python 3.8 because the repositories aren’t yet available for python 3.10

---

<div class="post-metadata">

**Author:** ![TrippelZ](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@TrippelZ](https://discuss.pytorch.org/u/TrippelZ)\
**Post date:** [October 22, 2021, 5:21pm UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884/3 "2021-10-22T17:21:55Z")

</div>

Ah, alright. I didn’t know this. Will try again with Python 3.8. Thanks.

---

<div class="post-metadata">

**Author:** ![sohani](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@sohani](https://discuss.pytorch.org/u/sohani)\
**Post date:** [October 23, 2021, 3:51am UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884/4 "2021-10-23T03:51:39Z")

</div>

I am using Python 3.8 with CUDA 11.5 and still get the same error.

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [October 23, 2021, 6:59am UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884/5 "2021-10-23T06:59:51Z")

</div>

Try to update `pip` and rerun the command.

---

<div class="post-metadata">

**Author:** ![deeplearner20](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/deeplearner20/32/38534_2.png) [@deeplearner20](https://discuss.pytorch.org/u/deeplearner20)\
**Post date:** [February 2, 2022, 12:56am UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884/6 "2022-02-02T00:56:40Z")

</div>

I tried upgrading pip and installing with python 3.7. But it did not work.

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [February 2, 2022, 5:15am UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884/7 "2022-02-02T05:15:39Z")

</div>

What kind of error are you seeing?

---

<div class="post-metadata">

**Author:** ![veritas](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/veritas/32/11018_2.png) [@veritas](https://discuss.pytorch.org/u/veritas)\
**Post date:** [February 2, 2022, 1:55pm UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884/8 "2022-02-02T13:55:37Z")

</div>

PyTorch 1.10 does not support CUDA 11.5. Lower your CUDA to 11.3.1

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [February 3, 2022, 7:00am UTC](https://discuss.pytorch.org/t/pytorch-pip-installation-not-working/134884/9 "2022-02-03T07:00:01Z")

</div>

PyTorch `1.10` should support CUDA 11.5 in source builds. While the binaries are built with 10.2 and 11.3, the nightlies are also built with 11.5.  
The local CUDA toolkit won’t be used unless you are building PyTorch from source or a custom CUDA extension, so @sohani wouldn’t need to downgrade the local CUDA toolkit unless one of the previous use cases is used.
