1

I am trying to install the python module Torch in Pycharm using PIP.

I have tried using commands:

pip install torch
pip3 install torch
pip3 install torch torchvision

All of these commands produce the same error:

 File "......\snake\venv\lib\site-packages\pip-19.0.3
-py3.6.egg\pip\_internal\operations\prepare.py", line 90, in dist
    self.req.source_dir))[0]
IndexError: list index out of range

Please may you tell me how to fix this error, or what causes it?

Rui Costa
  • 417
  • 2
  • 11
boomyday
  • 11
  • 2
  • There may be an issue with your `pip` installation. Have you tried re-install ? https://stackoverflow.com/questions/19548957/can-i-force-pip-to-reinstall-the-current-version – Rui Costa Jul 09 '21 at 11:44
  • 1
    Just googled "pip install torch indexerror list index out of range", does [this](https://stackoverflow.com/q/47011935/9063935) help at all? – dwb Jul 09 '21 at 13:57

0 Answers0