3

我对 Python 很陌生,我不明白这里发生了什么。

C:\Users\Mike\Desktop>storytext testGui.py
Traceback (most recent call last):
  File "C:\Python25\Scripts\storytext.py", line 19, in <module>
    from storytext.cmdline import main
  File "C:\Python25\lib\site-packages\storytext-3.7-py2.5.egg\storytext\cmdline.py", line 3, in <module>
    import scriptengine, definitions
  File "C:\Python25\lib\site-packages\storytext-3.7-py2.5.egg\storytext\scriptengine.py", line 4, in
 <module>
    import recorder, replayer
  File "C:\Python25\lib\site-packages\storytext-3.7-py2.5.egg\storytext\recorder.py", line 6, in <module>
    from replayer import ReplayScript
  File "C:\Python25\lib\site-packages\storytext-3.7-py2.5.egg\storytext\replayer.py", line 5, in <module>
    from threading import Thread, Timer
  File "C:\Python25\lib\threading.py", line 13, in <module>
    from collections import deque
ImportError: No module named collections 

好的,没有模块命名的集合。事实上,当我在我的python25文件夹中搜索收藏时,它并不存在。我读过它位于Modules/_collectionsmodule.c,我也找不到。

整个事情的关键是我可以从解释器中导入集合,我可以from threading import Time, Timer在解释器中。

我在这台机器上确实有 python 2.5 和 2.6,它运行的是 Windows 7。

谁能指出我正确的方向?

4

0 回答 0