I'm trying to install PyTorch into my Conda environment using Anaconda Prompt(Miniconda3) but running into a similar issue seen here
First, I created my Conda environment:
conda create --name token python=3.
Next, I activate my environment and download PyTorch without fail using the following:
activate token
conda install pytorch pytorch-cuda=11.6 -c pytorch -c nvidia
Next, I go into my python console and try to import torch but find the following error:
python
>>>import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\.conda\envs\token\lib\site-packages\torch\__init__.py", line 139, in <module>
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\.conda\envs\token\lib\site-packages\torch\lib\shm.dll" or one of its dependencies.
When running the list command:
(base) C:\Users>conda list -n token pytorch
# packages in environment at C:\Users\.conda\envs\token:
#
# Name Version Build Channel
pytorch 1.13.0 py3.10_cuda11.6_cudnn8_0 pytorch
pytorch-cuda 11.6 h867d48c_0 pytorch
pytorch-mutex 1.0 cuda pytorch
Is there a way to check which dependencies are missing or know why PyTorch is not being recognised?