我正在尝试使用Python 2.7.6设置VisPy。在为64位计算机安装PyQt4和SIP之后,我已经从SIP存档执行了configuration.py脚本,它似乎已正确运行,但是当从VisPy库运行示例脚本时,我一直没有收到后端错误。如果需要,我可以稍后发布这些错误。有没有人使用python 2.7.6在Windows 64位机器上设置这种环境的简单方法?
收到的错误:
C:\Python27\ArcGIS10.2\python.exe C:/pyvis/frequency.py
INFO: Could not import backend "PyQt4":
DLL load failed: %1 is not a valid Win32 application.
INFO: Could not import backend "PyQt5":
No module named PyQt5
INFO: Could not import backend "PySide":
No module named PySide
INFO: Could not import backend "Pyglet":
No module named pyglet
INFO: Could not import backend "Glfw":
GLFW library not found
INFO: Could not import backend "SDL2":
No module named sdl2
INFO: Could not import backend "wx":
No module named wx
INFO: Could not import backend "EGL":
EGL library not found
Traceback (most recent call last):
File "C:/pyvis/frequency.py", line 101, in <module>
c = Canvas()
File "C:/pyvis/frequency.py", line 60, in __init__
app.Canvas.__init__(self, size=(800, 600), keys='interactive')
File "C:\Python27\ArcGIS10.2\vispy\app\canvas.py", line 167, in __init__
self._app = use_app(call_reuse=False)
File "C:\Python27\ArcGIS10.2\vispy\app\_default_app.py", line 46, in use_app
default_app = Application(backend_name)
File "C:\Python27\ArcGIS10.2\vispy\app\application.py", line 49, in __init__
self._use(backend_name)
File "C:\Python27\ArcGIS10.2\vispy\app\application.py", line 224, in _use
'PyQt' % [b[0] for b in CORE_BACKENDS])
RuntimeError: Could not import any of the backends. You need to install any of ['PyQt4', 'PyQt5', 'PySide', 'Pyglet', 'Glfw', 'SDL2', 'wx', 'EGL']. We recommend PyQt
Process finished with exit code 1