rlworkgroup / garage

A toolkit for reproducible reinforcement learning research.
MIT License
1.84k stars 309 forks source link

ERROR: Failed building wheel for dm-tree #2293

Open Asriel31 opened 3 years ago

Asriel31 commented 3 years ago

I'm using anaconda3-2019.03 Python 3.7.3 I've performed conda install -c conda-forge dm-tree Another thing that I don't understand my macosx version is 10.13.6 x86_64 High Sierra and here above the build is performed toward macosx 10.9 x86_64

Complete output (13 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.7 creating build/lib.macosx-10.9-x86_64-3.7/tree copying tree/init.py -> build/lib.macosx-10.9-x86_64-3.7/tree copying tree/tree_test.py -> build/lib.macosx-10.9-x86_64-3.7/tree copying tree/tree_benchmark.py -> build/lib.macosx-10.9-x86_64-3.7/tree running build_ext bazel build //tree:_tree --symlink_prefix=build/temp.macosx-10.9-x86_64-3.7/bazel- --compilation_mode=opt unable to execute 'bazel': No such file or directory error: command 'bazel' failed with exit status 1 ERROR: Failed building wheel for dm-tree

Can someone help me please I've saw the previous issue similar to this topic but it is closed and not solves mine. Morever i've tried with several python and miniconda and anaconda version it's always the same issue

krzentner commented 3 years ago

Yeah, this breakage occurred because dm-tree's build script is broken, and the platform you're on doesn't have a pre-built dm-tree package uploaded to PyPI. Here are a few workarounds you can try:

If you don't need tensorflow support, you can install garage from this branch, which makes tensorflow optional.

Alternatively, the dm-tree repo has had a cmake based build for several months (but no PyPI release). You can try installing dm-tree from source, which might work.

I hope one of these options works for you.

Asriel31 commented 3 years ago

Thanks a lot to you've been so responsive, I'm gonna try to compile the dm-tree package. Do you know where can I reach the dm-tree repo that has a cmake based build, please?