GLFW的安装
Installation of GLFW
我在 Ubuntu 16 上使用 Python 3.5。在我的系统上,pip3 似乎认为 GLFW 已安装(满足要求),但在调用 python3 解释器,我收到导入错误:
>>> import glfw
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/glfw.py", line 194, in <module>
raise ImportError("Failed to load GLFW3 shared library.")
ImportError: Failed to load GLFW3 shared library.
关于如何调试这个错误有什么建议吗?
我认为您需要在系统上安装 GLFW 才能成功使用 python 软件包。 Previous answer.
我在 Ubuntu 16 上使用 Python 3.5。在我的系统上,pip3 似乎认为 GLFW 已安装(满足要求),但在调用 python3 解释器,我收到导入错误:
>>> import glfw
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/glfw.py", line 194, in <module>
raise ImportError("Failed to load GLFW3 shared library.")
ImportError: Failed to load GLFW3 shared library.
关于如何调试这个错误有什么建议吗?
我认为您需要在系统上安装 GLFW 才能成功使用 python 软件包。 Previous answer.