【问题标题】:installation of twisted fails using python3 on centos 6.x?在centos 6.x 上使用python3 安装twis​​ted 失败?
【发布时间】:2013-08-11 16:12:11
【问题描述】:
  1. 首先,我手动编译安装了python3.3,没有报错。

    cd /path/to/python3.3
    ./configure
    make && make install
    
  2. 然后我下载了扭曲的源代码树并使用以下命令安装它:

    cd /path/to/twisted
    python3 setup.py install
    
  3. 然后报错:

    error: in 'ext_modules' option (extension 'twisted.runner.portmap'), 'sources' must be present and must be a list of source filenames
    

    如果能在 centos 上使用 python3 提供帮助,我将不胜感激。

    谢谢。

【问题讨论】:

    标签: python python-3.x centos twisted


    【解决方案1】:

    您不能以这种方式在 Python 3 上安装 Twisted。从 subversion 中检查源代码:

    svn checkout svn://svn.twistedmatrix.com/svn/Twisted/tags/releases/twisted-13.1.0
    

    然后运行 ​​setup3.py:

    python3.3 setup3.py install
    

    【讨论】:

    • 是的,它可以工作,但问题是某些模块无法导入,例如错误:ImportError: No module named 'twisted.python.systemd'。顺便说一句:在我的 ubuntu 上一切正常,为什么 centos 没有。这让我很困惑。
    • Twisted for Python 3 仍在进行中:twistedmatrix.com/trac/milestone/Python-3.x
    猜你喜欢
    • 2018-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-26
    • 2014-04-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多