galai
galai copied to clipboard
Failed to load PyTorch C extensions:
raceback (most recent call last):
File "C:\Users\user\PycharmProjects\pythonProject19\HOF.py", line 1, in torch/_C
folder
of the PyTorch repository rather than the C extensions which
are expected in the torch._C
namespace. This can occur when
using the install
workflow. e.g.
$ python setup.py install && python -c "import torch"
This error can generally be solved using the `develop` workflow
$ python setup.py develop && python -c "import torch" # This should succeed
or by running Python from a different directory.
I get this problem eheh, what should I do? Sorry for my incompetence
It seems that either your pytorch
installation is broken or that you're running python
from the same directory where you downloaded pytorch
's source code.
- can you check if your
pytorch
works correctly by runningpython -c "import torch"
? - can you make sure there's no directory named
torch
in the directory you run yourpython
from?