This seems to be a conda issue, at least that’s what searching for this error yields. Did you recently reinstall anaconda?
Could you create a new virtual environment and reinstall PyTorch, please?
Hey, thanks for your answer! I’ve tried making a new environment and same thing happened, something very weird is happening. Ive reinstalled anaconda and same thing… other packages are working only pytorch is giving me this error, here is a picture of the error:
active environment : python
active env location : C:\Users\Public\anaconda3\envs\python
shell level : 1
user config file : C:\Users\Yann Majewski\.condarc
populated config files : C:\Users\Yann Majewski.condarc
conda version : 4.8.2
conda-build version : 3.18.11
python version : 3.7.6.final.0
virtual packages : __cuda=11.0
Im using the latest stable pytorch version 1.5. Is it possible there is a problem with compatibility?
I looked up the workarounds however it doesn’t really seem to be a similar problem. Im encountering this error only with pytorch. Its like it cant find the packages…
Hey @ptrblck I found the solution, there was a corrupted torch_cpu.dll file somewhere in one of the file probably from another install. Removing this copy allowed it to find the real torch_cpu.dll file and everything works now. Thank you for your time!
I found a workaround. I made a new venv with Python 3.8.3 and installed PyTorch again and all is working fine now.
p.s. I use pip and not anaconda (I hate anaconda! )
Actually my problem wasnt even because of that file, i found that when i was downloading a sofware to open histoloy images it did something to my computer that corrupted some files or something like that. So uninstalling it solved my problem!