python - 在centos 6.x 上使用python3 安装twis​​ted 失败?

标签 python python-3.x centos twisted

  • 首先,我手动编译安装了python3.3,没有报错。
    cd /path/to/python3.3
    ./configure
    make && make install
    
  • 然后我下载了扭曲的源代码树并使用以下命令安装它:
    cd /path/to/twisted
    python3 setup.py install
    
  • 然后报错:
    error: in 'ext_modules' option (extension 'twisted.runner.portmap'), 'sources' must be present and must be a list of source filenames
    

    我将非常感谢在 centos 上使用 python3 的任何帮助。

    谢谢你。
  • 最佳答案

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

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

    然后运行 ​​setup3.py:
    python3.3 setup3.py install
    

    关于python - 在centos 6.x 上使用python3 安装twis​​ted 失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18173985/

    相关文章:

    python - Python 的 gspread 中特定 Google 表格电子表格的持续性 SpreadsheetNotFound 错误

    python - 使用 beautifulsoup 进行网页抓取

    Python3 : Creating a string with an unescaped backslash

    mysql - Centos5 yum安装mysql-devel.x86_64错误

    python - 找到满足 A + B =C + D 的值的索引

    python - 如何在 pandas 中设置日期时间地板操作的基础?

    python - MySQL从Python插入/更新,来自Excel电子表格的数据

    python - 将一个 pandas DataFrame 的副本合并到另一个 DataFrame 的每一行中?

    php - 为 pthreads 配置 PHP

    java - webapps 未获取 tomcat 7 conf/web.xml 自定义错误页面