python setup.py bdist_wheel 没有运行成功

新手上路,请多包涵

我只想安装 nes_py,但收到以下错误消息:

 Collecting nes_py
  Using cached nes_py-8.1.8.tar.gz (76 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: gym>=0.17.2 in c:\users\hb\appdata\roaming\python\python310\site-packages (from nes_py) (0.23.0)
Requirement already satisfied: numpy>=1.18.5 in c:\users\hb\appdata\roaming\python\python310\site-packages (from nes_py) (1.22.3)
Requirement already satisfied: pyglet<=1.5.11,>=1.4.0 in c:\users\hb\appdata\roaming\python\python310\site-packages (from nes_py) (1.5.11)
Requirement already satisfied: tqdm>=4.48.2 in c:\users\hb\appdata\roaming\python\python310\site-packages (from nes_py) (4.63.0)
Requirement already satisfied: cloudpickle>=1.2.0 in c:\users\hb\appdata\roaming\python\python310\site-packages (from gym>=0.17.2->nes_py) (2.0.0)
Requirement already satisfied: gym-notices>=0.0.4 in c:\users\hb\appdata\roaming\python\python310\site-packages (from gym>=0.17.2->nes_py) (0.0.6)
Requirement already satisfied: colorama in c:\users\hb\appdata\roaming\python\python310\site-packages (from tqdm>=4.48.2->nes_py) (0.4.4)
Building wheels for collected packages: nes_py
  Building wheel for nes_py (setup.py): started
  Building wheel for nes_py (setup.py): finished with status 'error'
  Running setup.py clean for nes_py
Failed to build nes_py
Installing collected packages: nes_py, gym_super_mario_bros
  Running setup.py install for nes_py: started
  Running setup.py install for nes_py: finished with status 'error'
Note: you may need to restart the kernel to use updated packages.
Output exceeds the size limit. Open the full output data in a text editor
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [129 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.10
      creating build\lib.win-amd64-3.10\nes_py
      copying nes_py\nes_env.py -> build\lib.win-amd64-3.10\nes_py
      copying nes_py_image_viewer.py -> build\lib.win-amd64-3.10\nes_py
      copying nes_py_rom.py -> build\lib.win-amd64-3.10\nes_py
      copying nes_py__init__.py -> build\lib.win-amd64-3.10\nes_py
      creating build\lib.win-amd64-3.10\nes_py\app
      copying nes_py\app\cli.py -> build\lib.win-amd64-3.10\nes_py\app
      copying nes_py\app\play_human.py -> build\lib.win-amd64-3.10\nes_py\app
      copying nes_py\app\play_random.py -> build\lib.win-amd64-3.10\nes_py\app
      copying nes_py\app__init__.py -> build\lib.win-amd64-3.10\nes_py\app
      creating build\lib.win-amd64-3.10\nes_py\wrappers
      copying nes_py\wrappers\joypad_space.py -> build\lib.win-amd64-3.10\nes_py\wrappers
      copying nes_py\wrappers__init__.py -> build\lib.win-amd64-3.10\nes_py\wrappers
      running build_ext
      building 'nes_py.lib_nes_env' extension
...
╰─> nes_py

我已经尝试过的:

  • pip install nes-py –no-cache-dir
  • pip install –upgrade pip setuptools wheel

我的系统:

  • 视窗 10
  • Python 3.10.2 64 位
  • 视觉工作室代码

原文由 AS400 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 6.8k
1 个回答

我也有类似的问题,但是在我安装 Cmake 之后一切都很好

pip install Cmake

原文由 ceaseR 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题