trying to import torch to a Jupyter notebook in PyCharm, and getting this error:
ModuleNotFoundError: No module named 'torch'
PyTorch is definitely installed on my environment, v2.2.2, but I can’t seem to update to v2.3.0, getting this errors:
ERROR: Could not find a version that satisfies the requirement torch==2.3.0 (from versions: 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch==2.3.0
tried:
-
restarting PyCharm
-
!pip install torch
within the same notebook -
reinstalling PyTorch
-
updating torch version from Mac’s terminal
none helped..
thanks
Adir Golan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.