3
在命令提示i型>> twistd来echobot.tac运行twistd来在扭曲不能在窗口
Traceback (most recent call last):
File "C:\Python26\Scripts\twistd.py", line 18, in ?
from twisted.scripts.twistd import run
ImportError: No module named twisted.scripts.twistd
的twistd来是在C:\ Python26 \脚本\ twistd.py
#!c:\python26\python.exe
# Copyright (c) 2001-2009 Twisted Matrix Laboratories.
# See LICENSE for details.
### Twisted Preamble
# This makes sure that users don't have to set up their environment
# specially in order to run these programs from bin/.
import sys, os, string
if string.find(os.path.abspath(sys.argv[0]), os.sep+'Twisted') != -1:
sys.path.insert(0, os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),os.pardir, os.pardir)))
if hasattr(os, "getuid") and os.getuid() != 0:
sys.path.insert(0, os.path.abspath(os.getcwd()))
### end of preamble
from twisted.scripts.twistd import run
run()
当我在Python类型
from twisted.scripts.twistd import run
,它可以运行
这是什么版本的扭曲,你是怎么安装呢? – Glyph 2010-11-18 17:01:44
oww ...我已经忘了...但是这个问题是在窗口中...现在我使用Ubuntu的,像魅力工作 – wizztjh 2010-11-19 05:32:29
Twisted的某些版本并没有完全安装在Windows上自己。我相信这是固定的当前版本。 – 2011-03-18 19:52:55