Dan*_*ana 5 python box2d openai-gym google-colaboratory
我已经在体育馆环境中工作了几个星期,通过在笔记本中使用以下命令,我在 Google Colab 中没有遇到任何问题:pip3 install gymnasium[box2d]\n但是,在不更改任何内容的情况下,我尝试再次运行该命令,但它突然停止安装 Box2d适当地。
我得到以下输出:
\nLooking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\nCollecting gymnasium[box2d]\n Downloading gymnasium-0.28.1-py3-none-any.whl (925 kB)\n \xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81 925.5/925.5 kB 19.7 MB/s eta 0:00:00\nRequirement already satisfied: numpy>=1.21.0 in /usr/local/lib/python3.10/dist-packages (from gymnasium[box2d]) (1.22.4)\nCollecting jax-jumpy>=1.0.0 (from gymnasium[box2d])\n Downloading jax_jumpy-1.0.0-py3-none-any.whl (20 kB)\nRequirement already satisfied: cloudpickle>=1.2.0 in /usr/local/lib/python3.10/dist-packages (from gymnasium[box2d]) (2.2.1)\nRequirement already satisfied: typing-extensions>=4.3.0 in /usr/local/lib/python3.10/dist-packages (from gymnasium[box2d]) (4.5.0)\nCollecting farama-notifications>=0.0.1 (from gymnasium[box2d])\n Downloading Farama_Notifications-0.0.4-py3-none-any.whl (2.5 kB)\nCollecting box2d-py==2.3.5 (from gymnasium[box2d])\n Downloading box2d-py-2.3.5.tar.gz (374 kB)\n \xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81 374.4/374.4 kB 11.0 MB/s eta 0:00:00\n Preparing metadata (setup.py) ... done\nCollecting pygame==2.1.3 (from gymnasium[box2d])\n Downloading pygame-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.7 MB)\n \xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81 13.7/13.7 MB 28.2 MB/s eta 0:00:00\nCollecting swig==4.* (from gymnasium[box2d])\n Downloading swig-4.1.1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.8 MB)\n \xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81\xe2\x94\x81 1.8/1.8 MB 13.0 MB/s eta 0:00:00\nBuilding wheels for collected packages: box2d-py\n error: subprocess-exited-with-error\n \n \xc3\x97 python setup.py bdist_wheel did not run successfully.\n \xe2\x94\x82 exit code: 1\n \xe2\x95\xb0\xe2\x94\x80> See above for output.\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\n Building wheel for box2d-py (setup.py) ... error\n ERROR: Failed building wheel for box2d-py\n Running setup.py clean for box2d-py\nFailed to build box2d-py\nERROR: Could not build wheels for box2d-py, which is required to install pyproject.toml-based projects\nRun Code Online (Sandbox Code Playgroud)\n我尝试更改gymnasium的版本,甚至只是从gym安装,但错误仍然存在。我不知道发生了什么事,因为昨天我对此没有任何问题。
\n| 归档时间: |
|
| 查看次数: |
6520 次 |
| 最近记录: |