pip install box2d-py --only-binary=:all: 下载并手动安装wheel文件: 如果pip无法自动下载和安装wheel文件,你可以尝试从第三方源(如Gohlke的Python库)下载对应版本的wheel文件,然后使用pip手动安装: bash pip install path/to/box2d-py-wheel-file.whl 通过上
如果是在anaconda中安装,使用pip出现问题,可尝试用conda替换(如: conda install swig ) 接下来开始安装box2d-py,如果出现如下错误提示: 解决方法如下 1.直接到:https://www.lfd.uci.edu/~gohlke/pythonlibs/ 中下载对应的 box2d-py 包 比如我的电脑是64位,python是3.8版本的就选择红色箭头对应版本(其它包的...
I'm on Win11 with Anaconda. I want to install ‘gym’ using 'pip install gym[all]'. But it always had the error ‘Failed building wheel for box2d-py’
In that case, pip currently displays the build error and continues installation by attempting a setup.py install. In a future version, pip will not attempt setup.py install in that case, and fail the installation right away. Towards #8102 ERROR: Failed building wheel for box2d-py -- what...
Try installing cmake. It worked for me once I did that. I wasn't allowed to build atari-py in Ubuntu 19.10 inside a conda environment: Building wheels for collected packages: atari-py Building wheel for atari-py (setup.py) ... error ...