Module not found in pycharm (Windows)

15,817

Ok I solved this problem: First install anaconda and open the prompt then type conda install pytorch -c pytorch and pip3 install torchvision. Then go to PyCharm and create an Project and set the Project Interpreter to the Anaconda one (there is in the path: \Anaconda.x.x\python.exe ). Then you go to the Run settings and click Run... and then you go to Edit Configurations and then you select the Project Default interpreter and apply and you should be done! Thanks to the ppl who helped me =)

Share:
15,817
Tinec
Author by

Tinec

Updated on June 09, 2022

Comments

  • Tinec
    Tinec almost 2 years

    I wanted to install Pytorch via anaconda and it worked but PyCharm can't find the module (

    ModuleNotFoundError: No module named 'torch'

    I also have CUDA installed but when I looked up to add a the package with pycharm it also gives an error. When I added the anaconda interpreter I can't run the code. I use Python 3.6