Conversation started at: Not working with python3.13t · Issue #151584 · pytorch/pytorch · GitHub, continuing it here.
I tried compiling PyTorch for the CPU with the config shown in the attached image, yet I’m still getting this error:
PS D:\Python\StockEmulateAI> python3.13t -c "import torch"
Traceback (most recent call last):
File "<string>", line 1, in <module>
import torch
File "C:\Users\Bogdan\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\__init__.py", line 1003, in <module>
raise ImportError(
...<14 lines>...
) from None
ImportError: Failed to load PyTorch C extensions:
It appears that PyTorch has loaded the `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.