接着这时候使用pip install gymnasium[all]命令就可以把所有关联的包全部都安装完成,记着这之前一定不要pip install swig,在上一个命令中会自动安装swig包,如果你提前安装了swig包,你整个安装将会失败,挽救办法就是pip uninstall swig卸载它,重新再来。
安装gymnasium出现的问题 有的刚刚安装gymnasium,会报下面的错 Failed to build box2d-py ERROR: Could not build wheels for box2d-py, which is required to install pyproject.toml-based projects 原因: error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":...