我想为python安装glow,所以我运行了
pip3 install glfw
但是当我尝试在代码中导入glfw时出现这样的错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/glfw.py", line 149, in <module>
raise ImportError("Failed to load GLFW3 shared library.")
ImportError: Failed to load GLFW3 shared library.
我究竟做错了什么?
解决方法:
您需要在系统上安装glfw3.
如果您使用brew brew安装glfw3