Twisted on Python3:安装失败并出现一系列 "File Not Found" 错误

Twisted on Python3: Install fails with a series of "File Not Found" errors

我遇到的正是此处描述的问题:

https://twistedmatrix.com/trac/ticket/6539#comment:12

然而,票已关闭,每个人似乎都认为 Twisted 的一个巨大子集现在可以在 Python 3.

上运行

当我使用 Python 3 安装 Twisted 时,发出了票证上列出的错误,然后我遇到以下情况:

In [1]: import twisted

In [2]: dir(twisted)
Out[2]: 
['Version',
 '__builtins__',
 '__cached__',
 '__class__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__file__',
 '__format__',
 '__ge__',
 '__getattribute__',
 '__gt__',
 '__hash__',
 '__init__',
 '__le__',
 '__loader__',
 '__lt__',
 '__name__',
 '__ne__',
 '__new__',
 '__package__',
 '__path__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__sizeof__',
 '__spec__',
 '__str__',
 '__subclasshook__',
 '__version__',
 '_checkRequirements',
 '_version',
 'deprecatedModuleAttribute',
 'python',
 'version']

In [3]: from twisted import scripts
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
 in ()
----> 1 from twisted import scripts

ImportError: cannot import name 'scripts'

我做错了什么?

twisted.scripts 模块尚未移植。您可以看到 已经 被移植 here. twisted.scripts.twistd is an "almostModule" 的完整列表,这意味着它非常接近;那将是尝试开始移植的好地方。