rail-berkeley / rlkit

Collection of reinforcement learning algorithms
MIT License
2.43k stars 547 forks source link

Could someone provide right environment installation procedure? #168

Closed ZhenhuiTang closed 1 year ago

ZhenhuiTang commented 1 year ago

Building wheel for mujoco-py (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /root/miniconda3/bin/python /root/miniconda3/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpak70wvv9 cwd: /tmp/pip-install-d7en4dsl/mujoco-py_6a6786af6c064379a0f7b6cb3aa0da31 Complete output (71 lines): running bdist_wheel running build

You appear to be missing MuJoCo. We expected to find the file here: /root/.mujoco/mujoco200

This package only provides python bindings, the library must be installed separately.

Please follow the instructions on the README to install MuJoCo

  https://github.com/openai/mujoco-py#install-mujoco

Which can be downloaded from the website

  https://www.roboti.us/index.html

Traceback (most recent call last): File "/root/miniconda3/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in main() File "/root/miniconda3/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main json_out['return_val'] = hook(hook_input['kwargs']) File "/root/miniconda3/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 205, in build_wheel metadata_directory) File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 414, in build_wheel wheel_directory, config_settings) File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir self.run_setup() File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 485, in run_setup self).run_setup(setup_script=setup_script) File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 335, in run_setup exec(code, locals()) File "", line 51, in File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup return distutils.core.setup(attrs) File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-_0ll4r3f/normal/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 325, in run self.run_command("build") File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command self.distribution.run_command(command) File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/tmp/pip-build-env-_0ll4r3f/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "", line 29, in run File "/tmp/pip-install-d7en4dsl/mujoco-py_6a6786af6c064379a0f7b6cb3aa0da31/mujoco_py/init.py", line 3, in from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException File "/tmp/pip-install-d7en4dsl/mujoco-py_6a6786af6c064379a0f7b6cb3aa0da31/mujoco_py/builder.py", line 509, in mujoco_path, key_path = discover_mujoco() File "/tmp/pip-install-d7en4dsl/mujoco-py_6a6786af6c064379a0f7b6cb3aa0da31/mujoco_py/utils.py", line 93, in discover_mujoco raise Exception(message) Exception: You appear to be missing MuJoCo. We expected to find the file here: /root/.mujoco/mujoco200

This package only provides python bindings, the library must be installed separately.

Please follow the instructions on the README to install MuJoCo

  https://github.com/openai/mujoco-py#install-mujoco

Which can be downloaded from the website

  https://www.roboti.us/index.html

ERROR: Failed building wheel for mujoco-py Building wheel for Box2D-kengz (setup.py) ... error ERROR: Command errored out with exit status 1: command: /root/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-d7en4dsl/box2d-kengz_80f868e88aae41c08615b9f69ea9e838/setup.py'"'"'; file='"'"'/tmp/pip-install-d7en4dsl/box2d-kengz_80f868e88aae41c08615b9f69ea9e838/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'"'"'))' bdist_wheel -d /tmp/pip-wheel-qw6ntn10 cwd: /tmp/pip-install-d7en4dsl/box2d-kengz_80f868e88aae41c08615b9f69ea9e838/ Complete output (17 lines): Using setuptools (version 52.0.0.post20210125). running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/Box2D copying library/Box2D/init.py -> build/lib.linux-x86_64-3.7/Box2D copying library/Box2D/Box2D.py -> build/lib.linux-x86_64-3.7/Box2D creating build/lib.linux-x86_64-3.7/Box2D/b2 copying library/Box2D/b2/init.py -> build/lib.linux-x86_64-3.7/Box2D/b2 running build_ext building 'Box2D._Box2D' extension swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp swig -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library/Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i unable to execute 'swig': No such file or directory error: command 'swig' failed with exit status 1

ERROR: Failed building wheel for Box2D-kengz Running setup.py clean for Box2D-kengz Successfully built gym Failed to build mujoco-py Box2D-kengz ERROR: Could not build wheels for mujoco-py which use PEP 517 and cannot be installed directly

ZhenhuiTang commented 1 year ago

root@autodl-container-7c50118b52-f8c418b1:~/rlkit# conda env create -f environment/linux-gpu-env.yml Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you. Collecting package metadata (repodata.json): done Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 4.10.3 latest version: 22.11.1

Please update conda by running

$ conda update -n base -c defaults conda

Downloading and Extracting Packages cffi-1.11.5 | 213 KB | ############################################################################################# | 100% traitlets-4.3.2 | 131 KB | ############################################################################################# | 100% tk-8.5.18 | 1.9 MB | ############################################################################################# | 100% pyqt-5.6.0 | 5.4 MB | ############################################################################################# | 100% ninja-1.10.2 | 7 KB | ############################################################################################# | 100% matplotlib-2.0.2 | 10.8 MB | ############################################################################################# | 100% sip-4.18.1 | 278 KB | ############################################################################################# | 100% simplegeneric-0.8.1 | 9 KB | ############################################################################################# | 100% freetype-2.5.5 | 2.5 MB | ############################################################################################# | 100% scipy-1.0.1 | 17.8 MB | ############################################################################################# | 100% pexpect-4.8.0 | 51 KB | ############################################################################################# | 100% openssl-1.0.2u | 3.1 MB | ############################################################################################# | 100% parso-0.8.0 | 70 KB | ############################################################################################# | 100% six-1.16.0 | 19 KB | ############################################################################################# | 100% setuptools-40.2.0 | 571 KB | ############################################################################################# | 100% lockfile-0.12.2 | 19 KB | ############################################################################################# | 100% ipython_genutils-0.2 | 27 KB | ############################################################################################# | 100% readline-6.2 | 606 KB | ############################################################################################# | 100% libgfortran4-7.5.0 | 1.3 MB | ############################################################################################# | 100% gst-plugins-base-1.1 | 2.6 MB | ############################################################################################# | 100% libgomp-11.2.0 | 560 KB | ############################################################################################# | 100% libgfortran-ng-7.5.0 | 22 KB | ############################################################################################# | 100% libgcc-ng-11.2.0 | 8.5 MB | ############################################################################################# | 100% path.py-10.3.1 | 50 KB | ############################################################################################# | 100% wcwidth-0.2.5 | 34 KB | ############################################################################################# | 100% _libgcc_mutex-0.1 | 3 KB | ############################################################################################# | 100% wheel-0.37.1 | 31 KB | ############################################################################################# | 100% ca-certificates-2022 | 131 KB | ############################################################################################# | 100% prompt_toolkit-1.0.1 | 343 KB | ############################################################################################# | 100% python-dateutil-2.6. | 238 KB | ############################################################################################# | 100% pickleshare-0.7.5 | 13 KB | ############################################################################################# | 100% libxcb-1.15 | 609 KB | ############################################################################################# | 100% pygments-2.11.2 | 793 KB | ############################################################################################# | 100% qt-5.6.2 | 43.5 MB | ############################################################################################# | 100% pycparser-2.20 | 94 KB | ############################################################################################# | 100% libvorbis-1.3.7 | 549 KB | ############################################################################################# | 100% ipython-6.5.0 | 1.0 MB | ############################################################################################# | 100% markupsafe-1.0 | 25 KB | ############################################################################################# | 100% decorator-5.1.1 | 12 KB | ############################################################################################# | 100% numba-0.35.0 | 2.6 MB | ############################################################################################# | 100% pytz-2021.3 | 224 KB | ############################################################################################# | 100% numpy-1.11.3 | 3.5 MB | ############################################################################################# | 100% xz-5.2.5 | 389 KB | ############################################################################################# | 100% zlib-1.2.12 | 130 KB | ############################################################################################# | 100% jpeg-9e | 273 KB | ############################################################################################# | 100% expat-2.4.4 | 211 KB | ############################################################################################# | 100% certifi-2020.6.20 | 159 KB | ############################################################################################# | 100% intel-openmp-2022.0. | 8.5 MB | ############################################################################################# | 100% libiconv-1.14 | 2.0 MB | ############################################################################################# | 100% libxml2-2.9.9 | 2.0 MB | ############################################################################################# | 100% mako-1.0.6 | 111 KB | ############################################################################################# | 100% pytorch-0.4.1 | 471.3 MB | ############################################################################################# | 100% joblib-0.9.4 | 123 KB | ############################################################################################# | 100% pybox2d-2.3.1post2 | 1.8 MB | ############################################################################################# | 100% patchelf-0.13 | 90 KB | ############################################################################################# | 100% icu-54.1 | 11.3 MB | ############################################################################################# | 100% libogg-1.3.5 | 206 KB | ############################################################################################# | 100% mkl-2018.0.2 | 205.2 MB | ############################################################################################# | 100% cycler-0.10.0 | 13 KB | ############################################################################################# | 100% pip-10.0.1 | 1.8 MB | ############################################################################################# | 100% fontconfig-2.12.1 | 429 KB | ############################################################################################# | 100% libpng-1.6.37 | 364 KB | ############################################################################################# | 100% libffi-3.3 | 54 KB | ############################################################################################# | 100% pyparsing-2.4.7 | 59 KB | ############################################################################################# | 100% cython-0.28.5 | 3.3 MB | ############################################################################################# | 100% _openmp_mutex-5.1 | 20 KB | ############################################################################################# | 100% gettext-0.19.8.1 | 3.7 MB | ############################################################################################# | 100% llvmlite-0.20.0 | 11.2 MB | ############################################################################################# | 100% backcall-0.2.0 | 13 KB | ############################################################################################# | 100% libopus-1.3.1 | 570 KB | ############################################################################################# | 100% jedi-0.12.1 | 227 KB | ############################################################################################# | 100% sqlite-3.13.0 | 4.0 MB | ############################################################################################# | 100% pcre-8.45 | 257 KB | ############################################################################################# | 100% glib-2.69.1 | 1.9 MB | ############################################################################################# | 100% gstreamer-1.18.5 | 2.0 MB | ############################################################################################# | 100% dbus-1.13.18 | 586 KB | ############################################################################################# | 100% ninja-base-1.10.2 | 112 KB | ############################################################################################# | 100% libstdcxx-ng-11.2.0 | 6.1 MB | ############################################################################################# | 100% python-3.5.2 | 17.2 MB | ############################################################################################# | 100% libgcc-7.2.0 | 304 KB | ############################################################################################# | 100% ptyprocess-0.7.0 | 16 KB | ############################################################################################# | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done Installing pip dependencies: \ Ran pip subprocess with arguments: ['/root/miniconda3/envs/rlkit/bin/python', '-m', 'pip', 'install', '-U', '-r', '/root/rlkit/environment/condaenv.4k0nezm2.requirements.txt'] Pip subprocess output: Looking in indexes: https://repo.huaweicloud.com/repository/pypi/simple Collecting cloudpickle==0.5.2 (from -r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 1)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/aa/18/514b557c4d8d4ada1f0454ad06c845454ad438fd5c5e0039ba51d6b032fe/cloudpickle-0.5.2-py2.py3-none-any.whl Collecting gym[all]==0.10.5 (from -r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/9b/50/ed4a03d2be47ffd043be2ee514f329ce45d98a30fe2d1b9c61dea5a9d861/gym-0.10.5.tar.gz (1.5MB) Collecting gitpython==2.1.7 (from -r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 3)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/6a/bf/732476bf1ea3b05a3435fbbdde98c940da696e35f759c0a784ec4205a42d/GitPython-2.1.7-py2.py3-none-any.whl (446kB) Collecting gtimer==1.0.0b5 (from -r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 4)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/03/fb/dcaaf7b85aed9adb3b01f63cd5a5c779cc6216073e57395ec231fd45e083/gtimer-1.0.0b5.tar.gz Collecting pygame==1.9.2 (from -r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 5)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/b6/ef/0d279b8c44969f3f16161ca2a7a111f5227ff572ccb3968da5725e93c1e4/pygame-1.9.2-cp35-cp35m-manylinux1_x86_64.whl (9.4MB) Collecting ipdb (from -r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/fc/56/9f67dcd4a4b9960373173a31be1b8c47fe351a1c9385677a7bdd82810e57/ipdb-0.13.9.tar.gz Requirement not upgraded as not directly required: numpy>=1.10.4 in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) (1.11.3) Collecting requests>=2.0 (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl (61kB) Requirement not upgraded as not directly required: six in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) (1.16.0) Collecting pyglet>=1.2.0 (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/99/be/fe80f58efb4d124c9abd941e4c017d715da5a690b6dec977b894d8bc9d60/pyglet-2.0.0-py3-none-any.whl (966kB) Collecting mujoco_py>=1.50 (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/31/85/57a2a6ed8356100f2eff1678976187dff9ebc1d059af4664ada06f4bb424/mujoco-py-2.0.2.5.tar.gz (769kB) Collecting imageio (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/58/fc/1547b93534279bbf2de88f7c4a88975a65cecafd32c2bd3c518b2054ef76/imageio-2.16.0-py3-none-any.whl (3.3MB) Collecting atari_py>=0.1.1 (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/2b/73/721e43cbb316482f7cc99755fcc112f434007be25860bba98d0e7dda790a/atari-py-0.3.0.tar.gz (540kB) Collecting Pillow (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/56/3d/f3031fe0a88b797fd09ee0772f611e65be34f30263eefb838cce8f367e75/Pillow-7.2.0-cp35-cp35m-manylinux1_x86_64.whl (2.2MB) Collecting PyOpenGL (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/80/07/003fe74d2af04be917035b42c53c7ea9e3abe1e353753cebccfe792b4e52/PyOpenGL-3.1.6-py3-none-any.whl (2.4MB) Collecting Box2D-kengz (from gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/81/20/51d6c0c87f7642efb709c518fb0ca8e5eab068259588552c41da5926ae27/Box2D-kengz-2.3.3.tar.gz (425kB) Collecting gitdb2>=2.0.0 (from gitpython==2.1.7->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 3)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/52/7e/59f96b47f671b3fe0aa0c1b609531a540434b719a10c417581e25b383909/gitdb2-4.0.2-py3-none-any.whl Requirement not upgraded as not directly required: setuptools in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (40.2.0) Collecting ipython<7.10.0,>=7.0.0 (from ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/81/2e/59cdacea6476a4c21b7c090a91250ffbcd085900f5eb9f4e4d68dd2ee4e3/ipython-7.9.0-py3-none-any.whl (775kB) Collecting toml>=0.10.2 (from ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl Requirement not upgraded as not directly required: decorator in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (5.1.1) Collecting idna<3,>=2.5 (from requests>=2.0->gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB) Requirement not upgraded as not directly required: certifi>=2017.4.17 in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from requests>=2.0->gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) (2020.6.20) Collecting chardet<5,>=3.0.2 (from requests>=2.0->gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178kB) Collecting urllib3<1.27,>=1.21.1 (from requests>=2.0->gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/ec/03/062e6444ce4baf1eac17a6a0ebfe36bb1ad05e1df0e20b110de59c278498/urllib3-1.26.9-py2.py3-none-any.whl (138kB) Collecting glfw>=1.4.0 (from mujoco_py>=1.50->gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/2a/83/f0a2eed530013c89d7b732103d848fba92e2cf0cd83f016adb0bd348e481/glfw-2.5.4.tar.gz Requirement not upgraded as not directly required: Cython>=0.27.2 in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from mujoco_py>=1.50->gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) (0.28.5) Requirement not upgraded as not directly required: cffi>=1.10 in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from mujoco_py>=1.50->gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) (1.11.5) Requirement not upgraded as not directly required: lockfile>=0.12.2 in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from mujoco_py>=1.50->gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) (0.12.2) Collecting gitdb>=4.0.1 (from gitdb2>=2.0.0->gitpython==2.1.7->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 3)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/ea/e8/f414d1a4f0bbc668ed441f74f44c116d9816833a48bf81d22b697090dba8/gitdb-4.0.7-py3-none-any.whl (63kB) Requirement not upgraded as not directly required: pexpect; sys_platform != "win32" in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (4.8.0) Requirement not upgraded as not directly required: backcall in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (0.2.0) Requirement not upgraded as not directly required: traitlets>=4.2 in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (4.3.2) Requirement not upgraded as not directly required: jedi>=0.10 in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (0.12.1) Requirement not upgraded as not directly required: pickleshare in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (0.7.5) Collecting prompt-toolkit<2.1.0,>=2.0.0 (from ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/87/61/2dfea88583d5454e3a64f9308a686071d58d59a55db638268a6413e1eb6d/prompt_toolkit-2.0.10-py3-none-any.whl (340kB) Requirement not upgraded as not directly required: pygments in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (2.11.2) Requirement not upgraded as not directly required: pycparser in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from cffi>=1.10->mujoco_py>=1.50->gym[all]==0.10.5->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 2)) (2.20) Collecting smmap<5,>=3.0.1 (from gitdb>=4.0.1->gitdb2>=2.0.0->gitpython==2.1.7->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 3)) Downloading https://repo.huaweicloud.com/repository/pypi/packages/68/ee/d540eb5e5996eb81c26ceffac6ee49041d473bc5125f2aa995cf51ec1cf1/smmap-4.0.0-py2.py3-none-any.whl Requirement not upgraded as not directly required: ptyprocess>=0.5 in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from pexpect; sys_platform != "win32"->ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (0.7.0) Requirement not upgraded as not directly required: ipython_genutils in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from traitlets>=4.2->ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (0.2.0) Requirement not upgraded as not directly required: parso>=0.3.0 in /root/miniconda3/envs/rlkit/lib/python3.5/site-packages (from jedi>=0.10->ipython<7.10.0,>=7.0.0->ipdb->-r /root/rlkit/environment/condaenv.4k0nezm2.requirements.txt (line 6)) (0.8.0)

Pip subprocess error: parso requires Python '>=3.6' but the running Python is 3.5.2 You are using pip version 10.0.1, however version 20.3.4 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

failed

CondaEnvException: Pip failed

root@autodl-container-7c50118b52-f8c418b1:~/rlkit#

ZhenhuiTang commented 1 year ago

root@autodl-container-7c50118b52-f8c418b1:~/rlkit# pip install gym[all]==0.10.5 Looking in indexes: https://repo.huaweicloud.com/repository/pypi/simple Collecting gym[all]==0.10.5 Using cached https://repo.huaweicloud.com/repository/pypi/packages/9b/50/ed4a03d2be47ffd043be2ee514f329ce45d98a30fe2d1b9c61dea5a9d861/gym-0.10.5.tar.gz (1.5 MB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy>=1.10.4 in /root/miniconda3/lib/python3.7/site-packages (from gym[all]==0.10.5) (1.21.6) Requirement already satisfied: requests>=2.0 in /root/miniconda3/lib/python3.7/site-packages (from gym[all]==0.10.5) (2.25.1) Requirement already satisfied: six in /root/miniconda3/lib/python3.7/site-packages (from gym[all]==0.10.5) (1.16.0) Collecting pyglet>=1.2.0 Using cached https://repo.huaweicloud.com/repository/pypi/packages/99/be/fe80f58efb4d124c9abd941e4c017d715da5a690b6dec977b894d8bc9d60/pyglet-2.0.0-py3-none-any.whl (966 kB) Collecting atari_py>=0.1.1 Downloading https://repo.huaweicloud.com/repository/pypi/packages/7a/ad/bf0b26d4aa571e393619bd4d77e6ccb45f39a23d87f9a67080e02fa7b831/atari_py-0.2.9-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.8/2.8 MB 12.4 MB/s eta 0:00:00 Requirement already satisfied: Pillow in /root/miniconda3/lib/python3.7/site-packages (from gym[all]==0.10.5) (9.2.0) Collecting PyOpenGL Using cached https://repo.huaweicloud.com/repository/pypi/packages/80/07/003fe74d2af04be917035b42c53c7ea9e3abe1e353753cebccfe792b4e52/PyOpenGL-3.1.6-py3-none-any.whl (2.4 MB) Collecting Box2D-kengz Using cached https://repo.huaweicloud.com/repository/pypi/packages/81/20/51d6c0c87f7642efb709c518fb0ca8e5eab068259588552c41da5926ae27/Box2D-kengz-2.3.3.tar.gz (425 kB) Preparing metadata (setup.py) ... done Collecting mujoco_py>=1.50 Downloading https://repo.huaweicloud.com/repository/pypi/packages/2f/48/b108057c1a23c8da9f4cdc7a7c46ab7cec49c3563c0706d50f2527de6ba0/mujoco-py-2.0.2.13.tar.gz (792 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 792.0/792.0 kB 88.5 MB/s eta 0:00:00 Installing build dependencies ... done WARNING: Missing build requirements in pyproject.toml for mujoco_py>=1.50 from https://repo.huaweicloud.com/repository/pypi/packages/2f/48/b108057c1a23c8da9f4cdc7a7c46ab7cec49c3563c0706d50f2527de6ba0/mujoco-py-2.0.2.13.tar.gz#sha256=d6ae66276b565af9063597fda70683a89c7356290f5ac3961b794ee90ec50eea (from gym[all]==0.10.5). WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'. Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting imageio Using cached https://repo.huaweicloud.com/repository/pypi/packages/33/4d/d31ab40bb761fb381c7514e6070c6e1643c44f83a2a48a83e4066227737f/imageio-2.22.4-py3-none-any.whl (3.4 MB) Collecting glfw>=1.4.0 Using cached https://repo.huaweicloud.com/repository/pypi/packages/c2/09/27ea15e450d15ae25bec74ccaafab7f62df0a9e7a9c5c830cae05b4aaf25/glfw-2.5.4-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-manylinux2014_x86_64.whl (207 kB) Collecting Cython>=0.27.2 Using cached https://repo.huaweicloud.com/repository/pypi/packages/e7/0a/414211dfbe90967189033d2b9987fd2d45cfa3f8dc21253cbcdb0c393367/Cython-0.29.32-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB) Collecting fasteners~=0.15 Using cached https://repo.huaweicloud.com/repository/pypi/packages/bc/a2/7d35ba2c8d9963398fcec49cd814e50a6b920d213928f06fdbbf8aa3289b/fasteners-0.18-py3-none-any.whl (18 kB) Requirement already satisfied: cffi>=1.10 in /root/miniconda3/lib/python3.7/site-packages (from mujoco_py>=1.50->gym[all]==0.10.5) (1.14.6) Requirement already satisfied: idna<3,>=2.5 in /root/miniconda3/lib/python3.7/site-packages (from requests>=2.0->gym[all]==0.10.5) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /root/miniconda3/lib/python3.7/site-packages (from requests>=2.0->gym[all]==0.10.5) (2022.9.24) Requirement already satisfied: chardet<5,>=3.0.2 in /root/miniconda3/lib/python3.7/site-packages (from requests>=2.0->gym[all]==0.10.5) (4.0.0) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /root/miniconda3/lib/python3.7/site-packages (from requests>=2.0->gym[all]==0.10.5) (1.26.6) Requirement already satisfied: pycparser in /root/miniconda3/lib/python3.7/site-packages (from cffi>=1.10->mujoco_py>=1.50->gym[all]==0.10.5) (2.20) Building wheels for collected packages: mujoco_py, Box2D-kengz, gym Building wheel for mujoco_py (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for mujoco_py (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [71 lines of output] running bdist_wheel running build

  You appear to be missing MuJoCo.  We expected to find the file here: /root/.mujoco/mujoco200

  This package only provides python bindings, the library must be installed separately.

  Please follow the instructions on the README to install MuJoCo

      https://github.com/openai/mujoco-py#install-mujoco

  Which can be downloaded from the website

      https://www.roboti.us/index.html

  Traceback (most recent call last):
    File "/root/miniconda3/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
      main()
    File "/root/miniconda3/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/root/miniconda3/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 250, in build_wheel
      metadata_directory)
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 414, in build_wheel
      wheel_directory, config_settings)
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 398, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 485, in run_setup
      self).run_setup(setup_script=setup_script)
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 335, in run_setup
      exec(code, locals())
    File "<string>", line 51, in <module>
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/__init__.py", line 87, in setup
      return distutils.core.setup(**attrs)
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-_gcf29qr/normal/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 325, in run
      self.run_command("build")
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 1208, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-_gcf29qr/overlay/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "<string>", line 29, in run
    File "/tmp/pip-install-edqtu38b/mujoco-py_ebb28a37f4254cc292266858f9695e96/mujoco_py/__init__.py", line 3, in <module>
      from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
    File "/tmp/pip-install-edqtu38b/mujoco-py_ebb28a37f4254cc292266858f9695e96/mujoco_py/builder.py", line 509, in <module>
      mujoco_path, key_path = discover_mujoco()
    File "/tmp/pip-install-edqtu38b/mujoco-py_ebb28a37f4254cc292266858f9695e96/mujoco_py/utils.py", line 93, in discover_mujoco
      raise Exception(message)
  Exception:
  You appear to be missing MuJoCo.  We expected to find the file here: /root/.mujoco/mujoco200

  This package only provides python bindings, the library must be installed separately.

  Please follow the instructions on the README to install MuJoCo

      https://github.com/openai/mujoco-py#install-mujoco

  Which can be downloaded from the website

      https://www.roboti.us/index.html

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for mujoco_py Building wheel for Box2D-kengz (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [17 lines of output] Using setuptools (version 52.0.0.post20210125). running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/Box2D copying library/Box2D/init.py -> build/lib.linux-x86_64-3.7/Box2D copying library/Box2D/Box2D.py -> build/lib.linux-x86_64-3.7/Box2D creating build/lib.linux-x86_64-3.7/Box2D/b2 copying library/Box2D/b2/init.py -> build/lib.linux-x86_64-3.7/Box2D/b2 running build_ext building 'Box2D._Box2D' extension swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp swig -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library/Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i unable to execute 'swig': No such file or directory error: command 'swig' failed with exit status 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for Box2D-kengz Running setup.py clean for Box2D-kengz Building wheel for gym (setup.py) ... done Created wheel for gym: filename=gym-0.10.5-py3-none-any.whl size=1581308 sha256=8294740520311dea6b595ae729112e8c4c3e4cf463ee987e130e9d7aa80be05f Stored in directory: /root/.cache/pip/wheels/83/b8/76/bbaa52971a1c88a104e0e51d36d34d7dc3d02461144a21a347 Successfully built gym Failed to build mujoco_py Box2D-kengz ERROR: Could not build wheels for mujoco_py, which is required to install pyproject.toml-based projects

ZhenhuiTang commented 1 year ago

pip install pygame==1.9.2 Looking in indexes: https://repo.huaweicloud.com/repository/pypi/simple Collecting pygame==1.9.2 Downloading https://repo.huaweicloud.com/repository/pypi/packages/da/b8/b110cdea95452f8f9f9e79d02062fdccaebfd808a667d6d9a805ca8d222a/pygame-1.9.2.tar.gz (3.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 10.2 MB/s eta 0:00:00 Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [12 lines of output]

  WARNING, No "Setup" File Exists, Running "config.py"
  Using UNIX configuration...

  /bin/sh: 1: sdl-config: not found
  /bin/sh: 1: sdl-config: not found
  /bin/sh: 1: sdl-config: not found

  Hunting dependencies...
  WARNING: "sdl-config" failed!
  Unable to run "sdl-config". Please make sure a development version of SDL is installed.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

ZhenhuiTang commented 1 year ago

I fixed this problem by installing mujoco150 at first and use python3.7.2 rather than python3.5.2