garage: Failed building wheel for dm-tree
Installing garage dependencies into a fresh conda environment (Python 3.8) via pip install --no-cache -e ."[mujoco,dm_control]" yields the following errors related to dm-tree. These may or may not be specific to my computer/macOS, but they are reproducible in every fresh conda env that I make. If instead I try to install from PyPI (pip install --no-cache -e garage"[mujoco,dm_control]"), it says Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI since dm_control is from deepmind’s repo.
ERROR: Command errored out with exit status 1: command: /Users/haydenshively/anaconda3/envs/Garage/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/hz/1l2dtvyj4dv35mys1v9y2nd40000gn/T/pip-install-mk32dmoe/dm-tree/setup.py’“'”‘; file=’“'”‘/private/var/folders/hz/1l2dtvyj4dv35mys1v9y2nd40000gn/T/pip-install-mk32dmoe/dm-tree/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ bdist_wheel -d /private/var/folders/hz/1l2dtvyj4dv35mys1v9y2nd40000gn/T/pip-wheel-5hwif72_ cwd: /private/var/folders/hz/1l2dtvyj4dv35mys1v9y2nd40000gn/T/pip-install-mk32dmoe/dm-tree/ Complete output (13 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.8 creating build/lib.macosx-10.9-x86_64-3.8/tree copying tree/init.py -> build/lib.macosx-10.9-x86_64-3.8/tree copying tree/tree_test.py -> build/lib.macosx-10.9-x86_64-3.8/tree copying tree/tree_benchmark.py -> build/lib.macosx-10.9-x86_64-3.8/tree running build_ext bazel build //tree:_tree --symlink_prefix=build/temp.macosx-10.9-x86_64-3.8/bazel- --compilation_mode=opt unable to execute ‘bazel’: No such file or directory error: command ‘bazel’ failed with exit status 1
ERROR: Command errored out with exit status 1: command: /Users/haydenshively/anaconda3/envs/Garage/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/hz/1l2dtvyj4dv35mys1v9y2nd40000gn/T/pip-install-mk32dmoe/dm-tree/setup.py’“'”‘; file=’“'”‘/private/var/folders/hz/1l2dtvyj4dv35mys1v9y2nd40000gn/T/pip-install-mk32dmoe/dm-tree/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record /private/var/folders/hz/1l2dtvyj4dv35mys1v9y2nd40000gn/T/pip-record-bgk0rzmx/install-record.txt --single-version-externally-managed --compile --install-headers /Users/haydenshively/anaconda3/envs/Garage/include/python3.8/dm-tree cwd: /private/var/folders/hz/1l2dtvyj4dv35mys1v9y2nd40000gn/T/pip-install-mk32dmoe/dm-tree/ Complete output (13 lines): running install running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.8 creating build/lib.macosx-10.9-x86_64-3.8/tree copying tree/init.py -> build/lib.macosx-10.9-x86_64-3.8/tree copying tree/tree_test.py -> build/lib.macosx-10.9-x86_64-3.8/tree copying tree/tree_benchmark.py -> build/lib.macosx-10.9-x86_64-3.8/tree running build_ext bazel build //tree:_tree --symlink_prefix=build/temp.macosx-10.9-x86_64-3.8/bazel- --compilation_mode=opt unable to execute ‘bazel’: No such file or directory error: command ‘bazel’ failed with exit status 1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (8 by maintainers)
Hello. I have the same problem with you, but The version of python on my computer is 3.6. Do you know why? Thanks!
Upgrading to Python 3.11.5 solved the problem for me.