jkulhanek / robot-visual-navigation

Visual Navigation in Real-World Indoor Environments Using End-to-End Deep Reinforcement Learning Official Implementation
MIT License
58 stars 11 forks source link

install issues #3

Closed wenzhi-zhang closed 2 years ago

wenzhi-zhang commented 2 years ago

after l successfully install the DeepMind Lab,l begin to Install the deeprl package,then,l meet a error ,l don't how to deal it .

ERROR: Command errored out with exit status 1: command: /home/kangwen/anaconda3/envs/rvn/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/kangwen/robot-visual-navigation/deep-rl-pytorch/setup.py'"'"'; file='"'"'/home/kangwen/robot-visual-navigation/deep-rl-pytorch/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-p0e_oamq cwd: /home/kangwen/robot-visual-navigation/deep-rl-pytorch/ Complete output (15 lines): Traceback (most recent call last): File "", line 1, in File "/home/kangwen/robot-visual-navigation/deep-rl-pytorch/setup.py", line 2, in from deep_rl import version File "/home/kangwen/robot-visual-navigation/deep-rl-pytorch/deep_rl/init.py", line 1, in from .registry import make_agent, make_trainer, register_agent, register_trainer File "/home/kangwen/robot-visual-navigation/deep-rl-pytorch/deep_rl/registry.py", line 1, in from .common import train_wrappers as wrappers File "/home/kangwen/robot-visual-navigation/deep-rl-pytorch/deep_rl/common/init.py", line 1, in from .train_wrappers import MetricContext File "/home/kangwen/robot-visual-navigation/deep-rl-pytorch/deep_rl/common/train_wrappers.py", line 5, in from ..core import AbstractTrainerWrapper, MetricContext File "/home/kangwen/robot-visual-navigation/deep-rl-pytorch/deep_rl/core.py", line 4, in import gym ModuleNotFoundError: No module named 'gym'

WARNING: Discarding file:///home/kangwen/robot-visual-navigation/deep-rl-pytorch. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

jkulhanek commented 2 years ago

You can resolve it by running pip install gym

jkulhanek commented 2 years ago

You have to specify a trainer. E.g. "python test-train.py dmhouse-a2c"