Autograd Import Error
aseembits93 opened this issue · 3 comments
aseembits93 commented
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.
Khrylx commented
Are you using python 3.5? I haven't seen this error before.
aseembits93 commented
oh, I'm using 2.7 actually
Khrylx commented
Then you should use python3.5.