Khrylx / PyTorch-RL

PyTorch implementation of Deep Reinforcement Learning: Policy Gradient methods (TRPO, PPO, A2C) and Generative Adversarial Imitation Learning (GAIL). Fast Fisher vector product TRPO.
MIT License
1.1k stars 188 forks source link

Autograd Import Error #3

Closed aseembits93 closed 6 years ago

aseembits93 commented 6 years ago

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 6 years ago

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

aseembits93 commented 6 years ago

oh, I'm using 2.7 actually

Khrylx commented 6 years ago

Then you should use python3.5.