Torchrl. Import problem

Hello everybody. Please help me for solution this problem. I install torchrl use the command
pip install torchrl but after when I want import this library it take me the error
ImportError: /home/whoiam/Desktop/ML/shad_env/lib/python3.10/site-packages/torchrl/_torchrl.so: undefined symbol: _ZNK3c107SymBool10guard_boolEPKcl
I search solution of this one in stackoverflow and other sites but not found.

Hi @Samvel_Safaryan
May I ask which version of pytorch you’re using?

EDIT:
The binaries should be used with torch 2.0
For other versions, you can still do pip install git+https://github.com/pytorch/rl@v0.1.0
For now we want the library to be compatible with previous versions of torch, this is why the pytorch version is not enforced in the setup.py.

1 Like