【发布时间】:2022-11-28 21:19:09
【问题描述】:
我目前正在使用 Windows 机器,并且正忙于一些依赖于使用 PyBullet 虚拟环境来测试我的“机器人”的机车能力的遗传算法。我正在从事的项目要求我使用多线程,所以我的讲师建议我安装 WSL 来这样做,因为显然它在 Windows 上不起作用。
我安装了 WSL,并创建了一个 python 虚拟环境来工作。一切都很好,直到我尝试连接到 PyBullet 服务器,它产生了以下输出:
pybullet build time: Nov 27 2022 13:20:33
startThreads creating 1 threads.
starting thread 0
started thread 0
argc=2
argv[0] = --unused
argv[1] = --start_demo_name=Physics Server
ExampleBrowserThreadFunc started
X11 functions dynamically loaded using dlopen/dlsym OK!
cannot connect to X server
我该怎么做才能解决这个问题?请询问是否需要有关我的设置的更多信息:)
【问题讨论】:
-
你能运行其他 X 程序吗? PyBullet 是奇数吗?
标签: python windows-subsystem-for-linux pybullet