我在我的代碼中使用pg模塊時遇到了問題。我已經使用pip安裝了它。但是,當我去運行它,我得到以下錯誤:Python的pg模塊的導入錯誤
Traceback (most recent call last):
File "Contract_gen.py", line 2, in <module>
import pg
File "C:\Python27\lib\site-packages\pg\__init__.py", line 1, in <module>
from .core import (
File "C:\Python27\lib\site-packages\pg\core.py", line 6, in <module>
from . import glfw
File "C:\Python27\lib\site-packages\pg\glfw.py", line 140, in <module>
raise ImportError("Failed to load GLFW3 shared library.")
ImportError: Failed to load GLFW3 shared library.
你嘗試谷歌搜索您的錯誤信息被提及? http://stackoverflow.com/q/35645928/3001761 – jonrsharpe
我確定,但我沒有找到該線程!用pip來安裝glfw,我沒有任何改變。 – Joe
您是否閱讀過該鏈接問題的答案? – Evert