我一直在試圖遵循tutorial在線和我按照每一行出於某種原因,我得到以下錯誤:沒有模塊使用pyOpenGL
Traceback (most recent call last):
File "C:/Users/User/Desktop/OpenGLContextTest.py", line 2, in <module>
from OpenGLContext import testingcontext
File "C:\Python27\lib\site-packages\openglcontext-2.2.0a2-py2.7.egg\OpenGLContext\testingcontext.py", line 10, in <module>
from OpenGLContext import plugins, context, contextdefinition
File "C:\Python27\lib\site-packages\openglcontext-2.2.0a2-py2.7.egg\OpenGLContext\context.py", line 32, in <module>
from OpenGLContext import visitor, texturecache,plugins
File "C:\Python27\lib\site-packages\openglcontext-2.2.0a2-py2.7.egg\OpenGLContext\visitor.py", line 3, in <module>
from OpenGLContext.scenegraph import nodepath
File "C:\Python27\lib\site-packages\openglcontext-2.2.0a2-py2.7.egg\OpenGLContext\scenegraph\nodepath.py", line 3, in <module>
from vrml.vrml97 import nodepath, nodetypes
File "C:\Python27\lib\site-packages\pyvrml97-2.3.0a2-py2.7.egg\vrml\vrml97\nodepath.py", line 4, in <module>
from vrml import nodepath
File "C:\Python27\lib\site-packages\pyvrml97-2.3.0a2-py2.7.egg\vrml\nodepath.py", line 3, in <module>
from vrml import node, weaklist
File "C:\Python27\lib\site-packages\pyvrml97-2.3.0a2-py2.7.egg\vrml\node.py", line 6, in <module>
from vrml import field, fieldtypes, weaklist, weakkeydictfix
File "C:\Python27\lib\site-packages\pyvrml97-2.3.0a2-py2.7.egg\vrml\field.py", line 2, in <module>
from pydispatch import dispatcher, robustapply
ImportError: No module named pydispatch
我試圖尋找在谷歌本教程可能會被打破的可能性,但我不相信它。我有pydispatch,並嘗試使用easy_install
進行安裝,但沒有任何更改。有人可以幫助我嗎?我知道代碼是完全正確的,因爲過了一段時間我複製並粘貼了一切,以確保它不是我的語法。
我已經擁有了,這就是困擾我的。這是我試圖安裝它時的消息:'需求已經滿足(使用 - 升級升級):PyDispatcher in c:\ ana conda \ lib \ site-packages 正在清理......並且當使用'easy_install' :'pydispatch 1.0.3已經是easy-install.pth中的活動版本 使用c:\ python27 \ lib \ site-packages \ pydispatch-1.0.3-py2.7.egg pydispatch的處理依賴關係 已完成處理pydispatch的依賴關係 – ReallyGoodPie
你可以從你的python提示符下嘗試一個簡單的pydispatch程序。只需嘗試**導入pydispatch **並檢查你得到了什麼? –