Sta*_*123 7 python windows twisted
我的Windows机器上安装了python2.6.
试图安装扭曲的包但无法安装它.
还安装了zope接口
在python解释器上我得到错误:
>>>import twisted
>>>Import Error: No Module named twisted
Run Code Online (Sandbox Code Playgroud)
我成功地安装了包装.
C:\Documents and Settings\tazim_kolhar>python
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import twisted
>>> ^Z
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试运行包含该包的脚本时:
C:\Documents and Settings\tazim_kolhar>cd ..
C:\Documents and Settings>cd ..
C:\>cd Python_scripts
C:\Python_scripts>python aimbot.py
aimbot.py:10: DeprecationWarning: twisted.words.protocols.toc is deprecated sinc
e Twisted 9.0. Use twisted.words.protocols.oscar instead.
from twisted.words.protocols import toc
Traceback (most recent call last):
File "aimbot.py", line 10, in <module>
from twisted.words.protocols import toc
File "C:\Python26\Lib\site-packages\twisted\words\protocols\toc.py", line 27,
in <module>
from twisted.internet import reactor, protocol
File "C:\Python26\Lib\site-packages\twisted\internet\reactor.py", line 37, in
<module>
from twisted.internet import selectreactor
File "C:\Python26\Lib\site-packages\twisted\internet\selectreactor.py", line 1
7, in <module>
from zope.interface import implements
ImportError: No module named zope.interface
C:\Python_scripts>
Run Code Online (Sandbox Code Playgroud)
我已经下载了zope接口.但文档http://twistedmatrix.com/trac/wiki/WindowsBuilds并没有清楚地解释zope接口.
如何安装此zope界面?
任何帮助都是有价值的.
谢谢,塔齐姆.
Sta*_*123 19
安装包的步骤如下:
安装python任何版本.
然后,安装适当的exe
http://twistedmatrix.com/trac/wiki/Downloads
扭曲10.1.0 for Python 2.6(msi | exe)或Twisted 10.1.0 for Python 2.5(msi | exe)
下载zope界面.
安装setuptools
http://pypi.python.org/pypi/setuptools#downloads
将PATH变量更新到包含easy_install.exe的子目录.
安装zope接口使用:
easy_install zope.interface-3.6.1-py2.5-win32.egg
| 归档时间: |
|
| 查看次数: |
19797 次 |
| 最近记录: |