google-deepmind / google-deepmind/dm_control

Error installing dm_control using python 3.13

未关闭
#511 3 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
4.7k
派生
764
PR 合并指标
30 天内没有已合并 PR

描述

**Description:**
Attempting to install dm_control using pip install dm_control results in a build failure for labmaze. The error suggests that Bazel 8 has disabled WORKSPACE by default, and Bazel 9 will remove it completely. The build process is unable to locate bazel_skylib, leading to a failure in resolving dependencies.

**Steps to Reproduce:**
1. Install the latest Python 3.13.2 on macOS or Ubuntu.
2. Attempt to install dm_control:

`pip install dm_control
`

**Observed Behavior:**
The installation fails with the following error:

```
ERROR: Skipping '//labmaze/cc/python:_defaults': error loading package 'labmaze/cc/python':
at /private/var/folders/.../bazel/build_defs.bzl:18:6: Unable to find package for
@@[unknown repo 'bazel_skylib' requested from @@]//lib:collections.bzl:
The repository '@@[unknown repo 'bazel_skylib' requested from @@]' could not be resolved:
No repository visible as '@bazel_skylib' from main repository. Was the repository introduced in WORKSPACE?
The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025),
please migrate to Bzlmod. See https://bazel.build/external/migration.
```

**My workaround:**
1. Downgraded Python to 3.10 → ✅ Worked
2. Installed using the conda environment :

`
conda install conda-forge dm_control
`

**Environment Details:**
• OS:
• macOS 15.3.2 (Apple Silicon)
• Ubuntu 22.04.5
• Python Versions Tested:
• ✅ 3.10 (Installation successful)
• ❌ 3.13.2 (Installation failed)

Thanks for your help! 🚀

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。