本文介绍了在OS X上安装pyglfw的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为python安装glow,所以我就跑了
I want to install glow for python so i runned
pip3 install glfw
但是当我尝试在代码中导入glfw时,会出现这样的错误
but when i'm trying to import glfw in code i get error like this
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 install glfw3
You need to install glfw3 on your system.If you use brew brew install glfw3
这篇关于在OS X上安装pyglfw的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!