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
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 =)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With