torch_cpu.dll not found on Windows #13584
-
After a simple spacy installation (following directions from the Install Spacy site):
I tried to run my script (which works great on Linux) and I got the following stacktrace. I've tried a bunch of different variants - installing in a conda environment (still using pip), installing with spacy[transformers], manually reinstalling torch, but they all end up the same way. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Here's my environment (python 3.12.1 from Anaconda): |
Beta Was this translation helpful? Give feedback.
-
Downgrading torch to 2.3.0 seems to have worked. Others online have mentioned convoluted solutions involving either a full or partial install of VS 2022 or a sketchy download and install of libomp140.x86_64.dll. The latest pytorch for Windows (2.4.0 - cpu-only version) seems to have picked up this dependency that can't be easily satisfied. |
Beta Was this translation helpful? Give feedback.
Downgrading torch to 2.3.0 seems to have worked. Others online have mentioned convoluted solutions involving either a full or partial install of VS 2022 or a sketchy download and install of libomp140.x86_64.dll. The latest pytorch for Windows (2.4.0 - cpu-only version) seems to have picked up this dependency that can't be easily satisfied.