AttributeError: module 'torch' has no attribute '_C'

File ~/Downloads/FinRL-master/newenv/lib/python3.10/site-packages/torch/_VF.py:24, in VFModule.init(self, name)
22 def init(self, name):
23 super().init(name)
—> 24 self.vf = torch._C._VariableFunctions

AttributeError: module ‘torch’ has no attribute ‘_C’

how do i solve this?

You might have multiple PyTorch installations in your current environment, so either uninstall them all and reinstall a single binary, or create a new virtual environment and install PyTorch there.