所以我在OSX上。 我在使用python3.7的anaconda上,带有gym0.9.5 我正在尝试运行Universe代理。我按照site
上的说明进行操作我已经在终端上完成了
git clone https://github.com/openai/universe.git
cd universe
pip install -e .
pip install numpy incremental
brew install golang libjpeg-turbo
为Mac安装Dcoker桌面
但是被第二条指令卡住了,这给了我一个错误:
[1]import gym
[2]import universe
/Users/nouhou/anaconda3/lib/python3.7/site-packages/universe/runtimes/__init__.py:7: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
spec = yaml.load(f)
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-67b44827881d> in <module>
----> 1 import universe
~/anaconda3/lib/python3.7/site-packages/universe/__init__.py in <module>
20 import universe.scoreboard
21 import universe.configuration
---> 22 from universe import error, envs
23 from universe.remotes import docker_remote
24 from universe.rewarder import merge_infos
~/anaconda3/lib/python3.7/site-packages/universe/envs/__init__.py in <module>
----> 1 import universe.envs.vnc_env
2 from universe.envs.vnc_env import VNCEnv
3 from universe.envs.vnc_core_env import GymCoreEnv, GymCoreSyncEnv
4 from universe.envs.vnc_flashgames import FlashgamesEnv
5 from universe.envs.vnc_internet import InternetEnv
~/anaconda3/lib/python3.7/site-packages/universe/envs/vnc_env.py in <module>
17 # driver here.
18 # noinspection PyUnresolvedReferences
---> 19 import go_vncdriver
20
21 logger = logging.getLogger(__name__)
~/anaconda3/lib/python3.7/site-packages/go_vncdriver/__init__.py in <module>
7 raise RuntimeError('go_vncdriver must be imported before tensorflow')
8
----> 9 from go_vncdriver.go_vncdriver import *
ImportError: dlopen(/Users/nouhou/anaconda3/lib/python3.7/site-packages/go_vncdriver/go_vncdriver.so, 2): Symbol not found: _NSApp
Referenced from: /Users/nouhou/anaconda3/lib/python3.7/site-packages/go_vncdriver/go_vncdriver.so
Expected in: flat namespace
in /Users/nouhou/anaconda3/lib/python3.7/site-packages/go_vncdriver/go_vncdriver.so