如何在MacOS Monterey(M1 Pro)上运行OpenAI/baselines?
我已经花了好几天尝试在MacBook上运行任何实现PPO的仓库,目前正试图让OpenAI/Baselines仓库正常工作。严格遵循其README操作后,解决了多个未文档化的问题——比如不同的tensorflow包源、安装脚本缺失tensorflow-macos分支、numpy已弃用功能、与MacOS不兼容的硬编码gcc版本等,但现在卡在了以下错误:
gym.error.DependencyNotInstalled:
dlopen(<...>/venv/lib/python3.10/site-packages/mujoco_py/generated/cymj_2.1.2.14_310_macextensionbuilder_310.so, 0x0002): symbol not found in flat namespace '_mj_Euler'
(HINT: you need to install mujoco_py, and also perform the setup instructions here: https://github.com/openai/mujoco-py/.)
我已经安装了mujoco_py,但完全不清楚问题所在,也未找到有效解决方法。如果有人对此有见解,或是知晓在MacOS Monterey(M1 Pro芯片)上运行OpenAI/baselines仓库的简便方法,甚至是任何可在Mac上运行的Python实现PPO的仓库,我将万分感激!
附:我的pip freeze输出供参考:
absl-py==1.4.0 astunparse==1.6.3 atari-py==0.2.9 attrs==22.2.0 cachetools==5.3.0 certifi==2022.12.7 cffi==1.15.1 charset-normalizer==3.0.1 click==8.1.3 cloudpickle==1.2.2 Cython==0.29.33 dill==0.3.6 exceptiongroup==1.1.0 fasteners==0.18 flatbuffers==23.1.21 future==0.18.3 gast==0.4.0 glfw==2.5.6 google-auth==2.16.0 google-auth-oauthlib==0.4.6 google-pasta==0.2.0 grpcio==1.51.1 gym==0.13.1 h5py==3.8.0 idna==3.4 imageio==2.25.0 iniconfig==2.0.0 joblib==1.2.0 keras==2.11.0 libclang==15.0.6.1 Markdown==3.4.1 MarkupSafe==2.1.2 mujoco==2.3.1.post1 mujoco-py==2.1.2.14 numpy==1.23.5 oauthlib==3.2.2 opencv-python==4.7.0.68 opt-einsum==3.3.0 packaging==23.0 Pillow==9.4.0 pluggy==1.0.0 progressbar2==4.2.0 protobuf==3.19.4 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.21 pyglet==1.3.2 PyOpenGL==3.1.6 pytest==7.2.1 python-utils==3.4.5 requests==2.28.2 requests-oauthlib==1.3.1 rsa==4.9 scipy==1.10.0 six==1.16.0 tensorboard==2.11.2 tensorboard-data-server==0.6.1 tensorboard-plugin-wit==1.8.1 tensorflow-estimator==2.11.0 tensorflow-macos==2.11.0 tensorflow-metal==0.7.0 termcolor==2.2.0 tomli==2.0.1 tqdm==4.64.1 typing_extensions==4.4.0 urllib3==1.26.14 Werkzeug==2.2.2 wrapt==1.14.1
内容的提问来源于stack exchange,提问作者user2999349

