Khrylx/PyTorch-RL

Autograd Import Error

aseembits93 opened this issue · 3 comments

Hi @Khrylx !
I'm trying your code out of the box by running python examples/ppo_gym.py --env-name Hopper-v1
I get the following error -

Traceback (most recent call last):
File "examples/ppo_gym.py", line 9, in
from utils import *
File "/home/aseem/treeqn_atreec/PyTorch-RL/utils/init.py", line 3, in
from utils.torch import *
File "/home/aseem/treeqn_atreec/PyTorch-RL/utils/torch.py", line 3, in
from torch.autograd import Variable
ImportError: No module named autograd

Could you help me out with it? I suspect there is an issue with setting up PYTHONPATH variable correctly.

Are you using python 3.5? I haven't seen this error before.

oh, I'm using 2.7 actually

Then you should use python3.5.