# Installation problem (OSError: \[Errno 2\])

**URL:** <https://discuss.pytorch.org/t/installation-problem-oserror-errno-2/131750>\
**Category:** windows\
**Created:** [September 12, 2021, 12:19pm UTC](https://discuss.pytorch.org/t/installation-problem-oserror-errno-2/131750 "2021-09-12T12:19:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frenchbones](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/frenchbones/32/42128_2.png) [@frenchbones](https://discuss.pytorch.org/u/frenchbones)\
**Post date:** [September 12, 2021, 12:19pm UTC](https://discuss.pytorch.org/t/installation-problem-oserror-errno-2/131750/1 "2021-09-12T12:19:40Z")

</div>

Hello!

I am having trouble installing torch. Here is the error:

```auto
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\h_bas\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\caffe2\\python\\serialized_test\\data\\operator_test\\collect_and_distribute_fpn_rpn_proposals_op_test.test_collect_and_dist.zip'

```

OS: Windows `10 21H1 (build 19043.1202)`  
pip version: `21.2.3`  
Python version: `3.9.7`

I’ve been looking for fixes, but I couldn’t find anything.  
Would anyone have a solution? (Sorry if this as already been posted somewhere here)  
If anyone has more questions on my setup I’ll be happy to provide more info.

Thank you.

PS: This is what I am running to install

```auto
pip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio===0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

```

NVIDIA-SMI: `471.96`  
CUDA Version: `11.4`

---

<div class="post-metadata">

**Author:** ![Rahul\_Chand](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/rahul_chand/32/32633_2.png) [@Rahul\_Chand](https://discuss.pytorch.org/u/Rahul_Chand)\
**Post date:** [September 12, 2021, 2:46pm UTC](https://discuss.pytorch.org/t/installation-problem-oserror-errno-2/131750/2 "2021-09-12T14:46:33Z")

</div>

@frenchbones

Hi, this usually happens because the file path is too big. You can try the following [link](https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/) to increase the acceptable length of file path.

```auto
C:\\Users\\h_bas\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\site-packages\\caffe2\\python\\serialized_test\\data\\operator_test\\collect_and_distribute_fpn_rpn_proposals_op_test.test_collect_and_dist.zip'

```

---

<div class="post-metadata">

**Author:** ![frenchbones](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/frenchbones/32/42128_2.png) [@frenchbones](https://discuss.pytorch.org/u/frenchbones)\
**Post date:** [September 12, 2021, 6:16pm UTC](https://discuss.pytorch.org/t/installation-problem-oserror-errno-2/131750/3 "2021-09-12T18:16:13Z")

</div>

Thanks a lot that fixed it!
