代码之家  ›  专栏  ›  技术社区  ›  Intrastellar Explorer

为lxml的构建依赖项向源列表添加什么

  •  0
  • Intrastellar Explorer  · 技术社区  · 7 年前

    我很难将Python3.6的lxml安装到BeagleBone Black(Debian GNU/Linux版本9)上。

    基于 this article

    sudo apt-get install libxml2-dev libxslt-dev python-dev
    

    那么这个:

    sudo apt-get build-dep python3-lxml
    

    E: You must put some 'source' URIs in your sources.list
    

    基于 this answer ,我需要修改 sources.list

    如何克服此错误并为Python3安装lxml库?

    顺便说一下,当我运行命令时:

    sudo apt-get install python3-lxml
    

    它失败的原因是一个很长的消息

    arm-linux-gnueabihf-gcc: internal compiler error: Killed (program cc1)
    
    0 回复  |  直到 7 年前
        1
  •  1
  •   captnfab    7 年前

    你必须添加类似的内容(你可以使用不同的镜像) deb-src http://deb.debian.org/debian/ stretch main 在sources.list中,然后运行 apt update 最后重新运行 apt-get build-dep python3-lxml