I have created a conda environement using the environment.yml
file located in the folder ~/.local/share/ov/pkg/isaac_sim-2022.1.0
. The only thing I have modified is the line with python=3.7
which I changed to python=3.8
.
However, when trying to import torch
, the following error occurs:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ragi/.local/share/ov/pkg/isaac_sim-2022.1.0/exts/omni.isaac.ml_archive/pip_prebundle/torch/__init__.py", line 216, in <module>
raise ImportError(textwrap.dedent('''
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.
I don’t have any problem with python 3.7. Has anyone an idea on how to solve that ?