我可以将哪个版本的 python 与 Twisted/Zope 一起使用?
我注意到 Twisted 依赖于 Zope。我发现当我尝试安装 Zope 时,运行后 ./configure 它告诉我需要使用 python2.4 (不是我想使用的 python 2.5+)。
但是,我看到一些教程和指南建议对 Twisted 使用 python 2.5。所以我一般都很困惑。有没有人设置过这个并运行一些使用 zope 的 twsited Web 示例?你用的是什么版本的Python?您是否遵循某处的安装指南?
I noticed that Twisted has a dependency on Zope. I found that when I tried to install Zope, after running, ./configure it tells me I need to use python2.4 (not python 2.5+ which I would like to be using).
However, I have seen some tutorials and guides that suggested using python 2.5 for Twisted. So I'm just generally confused. Has anyone set this up and ran some of the twsited web examples that use zope? What version of python did you use? Was there an installation guide you followed somewhere?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Twisted 不依赖于完整的
zope
。它只是zope.interface
,这是一个小的纯- python 模块与所有 zope 分开打包。您可以下载 .tar.gz 版本并运行通常的 python setup.py install ,这应该可以工作。或者,如果您的操作系统包含软件包管理系统,您可以检查它是否有易于安装的软件包。例如,在 debian/ubuntu 中你可以这样做:
甚至
直接这样做。
Twisted doesn't have a dependency on full
zope
. It's justzope.interface
, which is a small pure-python module packaged separately from all zope.You can download the
.tar.gz
version and run the usualpython setup.py install
, that should work. Or if your operational system includes a package management system, you could check it for a easy-to-install package. Example, in debian/ubuntu you could do:or even
directly.
如果您使用
pip install
或easy_install
安装twisted,它也会为您下载并安装zope.install。If you install twisted with
pip install
oreasy_install
it will download and install zope.install for you as well.