AS4*_*400 40 python python-3.x
我只想安装 nes_py,但收到以下错误消息:
\nCollecting nes_py\n Using cached nes_py-8.1.8.tar.gz (76 kB)\n Preparing metadata (setup.py): started\n Preparing metadata (setup.py): finished with status 'done'\nRequirement already satisfied: gym>=0.17.2 in c:\\users\\hb\\appdata\\roaming\\python\\python310\\site-packages (from nes_py) (0.23.0)\nRequirement already satisfied: numpy>=1.18.5 in c:\\users\\hb\\appdata\\roaming\\python\\python310\\site-packages (from nes_py) (1.22.3)\nRequirement 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)\nRequirement already satisfied: tqdm>=4.48.2 in c:\\users\\hb\\appdata\\roaming\\python\\python310\\site-packages (from nes_py) (4.63.0)\nRequirement 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)\nRequirement 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)\nRequirement already satisfied: colorama in c:\\users\\hb\\appdata\\roaming\\python\\python310\\site-packages (from tqdm>=4.48.2->nes_py) (0.4.4)\nBuilding wheels for collected packages: nes_py\n Building wheel for nes_py (setup.py): started\n Building wheel for nes_py (setup.py): finished with status 'error'\n Running setup.py clean for nes_py\nFailed to build nes_py\nInstalling collected packages: nes_py, gym_super_mario_bros\n Running setup.py install for nes_py: started\n Running setup.py install for nes_py: finished with status 'error'\nNote: you may need to restart the kernel to use updated packages.\nOutput exceeds the size limit. Open the full output data in a text editor\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> [129 lines of output]\n running bdist_wheel\n running build\n running build_py\n creating build\n creating build\\lib.win-amd64-3.10\n creating build\\lib.win-amd64-3.10\\nes_py\n copying nes_py\\nes_env.py -> build\\lib.win-amd64-3.10\\nes_py\n copying nes_py\\_image_viewer.py -> build\\lib.win-amd64-3.10\\nes_py\n copying nes_py\\_rom.py -> build\\lib.win-amd64-3.10\\nes_py\n copying nes_py\\__init__.py -> build\\lib.win-amd64-3.10\\nes_py\n creating build\\lib.win-amd64-3.10\\nes_py\\app\n copying nes_py\\app\\cli.py -> build\\lib.win-amd64-3.10\\nes_py\\app\n copying nes_py\\app\\play_human.py -> build\\lib.win-amd64-3.10\\nes_py\\app\n copying nes_py\\app\\play_random.py -> build\\lib.win-amd64-3.10\\nes_py\\app\n copying nes_py\\app\\__init__.py -> build\\lib.win-amd64-3.10\\nes_py\\app\n creating build\\lib.win-amd64-3.10\\nes_py\\wrappers\n copying nes_py\\wrappers\\joypad_space.py -> build\\lib.win-amd64-3.10\\nes_py\\wrappers\n copying nes_py\\wrappers\\__init__.py -> build\\lib.win-amd64-3.10\\nes_py\\wrappers\n running build_ext\n building 'nes_py.lib_nes_env' extension\n...\n\xe2\x95\xb0\xe2\x94\x80> nes_py\n
Run Code Online (Sandbox Code Playgroud)\n我已经尝试过的:
\n我的系统:
\n小智 20
我也有类似的问题,但安装 Cmake 后一切都很好
pip install Cmake
Run Code Online (Sandbox Code Playgroud)
小智 -1
此错误可能是由于您尚未安装 Wheel 软件包引起的。根据您的系统,在这个简短、简单且令人惊叹的教程中查看如何安装 Wheel 软件包。安装wheel包后,您可以通过运行安装nes pip install nes-py
。确保安装 Visual-Studio 17.0 工具,以便 nes 包可以在 Windows 上运行。
归档时间: |
|
查看次数: |
173746 次 |
最近记录: |