我从 Github 克隆了 glumpy 并尝试运行 glumpy\examples\app-simple.py
如果我使用 pip install pyglet 安装 pyglet,我可以很好地运行该示例(或者,我想我可以?如果我点击它的某些部分,窗口会导致一些奇怪的警告,比如拖动窗口的栏),但它会不认识 GLFW。
我已经尝试使用 pip 安装 GLFW,并且还按照此处的说明进行操作:https : //glumpy.readthedocs.io/en/latest/installation.html 复制 glfw3.dll 的位置。
这正是错误:
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from 'C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\glumpy\\app\\window\\backends\\backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from 'C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\glumpy\\app\\window\\backends\\backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from 'C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\glumpy\\app\\window\\backends\\backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from 'C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\glumpy\\app\\window\\backends\\backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from 'C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\glumpy\\app\\window\\backends\\backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from 'C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\glumpy\\app\\window\\backends\\backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from 'C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\glumpy\\app\\window\\backends\\backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from 'C:\\Users\\Max\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\glumpy\\app\\window\\backends\\backend_pyside.py'>) not available
[x] No suitable backend found
Traceback (most recent call last):
File "c:\Users\Max\.vscode\extensions\ms-python.python-2019.8.29288\pythonFiles\ptvsd_launcher.py", line 43, in <module>
main(ptvsdArgs)
File "c:\Users\Max\.vscode\extensions\ms-python.python-2019.8.29288\pythonFiles\lib\python\ptvsd\__main__.py", line 432, in main
run()
File "c:\Users\Max\.vscode\extensions\ms-python.python-2019.8.29288\pythonFiles\lib\python\ptvsd\__main__.py", line 316, in run_file
runpy.run_path(target, run_name='__main__')
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "d:\VSCODEProjects\glumpy_escape_pyglet\glumpy\examples\app-simple.py", line 7, in <module>
window = app.Window()
File "C:\Users\Max\AppData\Local\Programs\Python\Python37\lib\site-packages\glumpy\app\__init__.py", line 157, in __new__
raise NotImplementedError
NotImplementedError