为 lxml 的构建依赖项添加到源列表的内容
What to add to source list for build dependencies of lxml
我很难将 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)
你必须在你的 sources.list 中添加类似(你可以使用不同的镜像)deb-src http://deb.debian.org/debian/ stretch main
然后 运行 apt update
最后重新 运行 apt-get build-dep python3-lxml
命令。
我很难将 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)
你必须在你的 sources.list 中添加类似(你可以使用不同的镜像)deb-src http://deb.debian.org/debian/ stretch main
然后 运行 apt update
最后重新 运行 apt-get build-dep python3-lxml
命令。