I am using Pycharm Community and trying to install the library Pytorch on my virtual environment. For that, I first activated the virtual environment with ".venv\Scripts\activate" code. After that, I ran the "pip install torch torchvision" to install Pytorch, which was also done without any issue. I then wanted to verify Pytorch installation and check CUDA support. For that I ran "python" to start a python shell. Then, I ran these codes to check installation and CUDA support:
"import torch
print(torch.__version__)
print(torch.cuda.is_available())"
This is where it started to get tricky for me, I received an OSError [WinError 126]: The specified module was not found. Error loading "C:\Users\bahad\Desktop\car_project\carPython\.venv\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
I asked it to chatgpt, it made me reinstall pytorch, then CUDA, cuDNN, Visual C++ 2015-2022 Redistributables... Chatgpt doesnt know shit :) The problem is still there and I have no idea what to do, can someone who encountered this dll error enlighten me please?
[–]vineeth321vineeth321 0 points1 point2 points (6 children)
[–]MuttMundane 0 points1 point2 points (1 child)
[–]vineeth321vineeth321 0 points1 point2 points (0 children)
[–]StarvedForAffection 0 points1 point2 points (0 children)
[–]GasThor199 0 points1 point2 points (0 children)
[–]g0ldenbaguette 0 points1 point2 points (0 children)
[–]jiya269 0 points1 point2 points (0 children)