在将python 3.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
如何克服此错误并为Python 3安装lxml库?
顺便说一句,当我运行命令时:
sudo apt-get install python3-lxml
失败,并显示一条长消息,直到
arm-linux-gnueabihf-gcc: internal compiler error: Killed (program cc1)
答案 0 :(得分:1)
您必须在sources.list中添加类似(可以使用其他镜像)'1111"
之类的东西,然后运行deb-src http://deb.debian.org/debian/ stretch main
,最后重新运行apt update
命令。