【发布时间】:2016-12-11 10:37:08
【问题描述】:
我在安装BeautifulSoup4 包后尝试安装lxml 包。
在终端输入:
sudo pip install lxml
这就是我得到的
sudo pip install lxml
Downloading/unpacking lxml
Running setup.py egg_info for package lxml
Building lxml version 3.6.1.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /usr/lib
Installing collected packages: lxml
Running setup.py install for lxml
Building lxml version 3.6.1.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /usr/lib
building 'lxml.etree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-armv9l-2.7/src/lxml/lxml.etree.o -w
然后它就在最后一行挂了很长时间,我必须按 CTRL+C 退出。
谁能告诉我这到底是什么意思?
然后我尝试pip freeze 看看是否安装了包。不,它不存在。
【问题讨论】:
-
这意味着您使用的设备硬件非常有限,因此编译程序可能需要很长时间。如果你在编译过程中退出,它没有被安装并不奇怪。
-
在我的树莓派上,编译器崩溃说:“arm-linux-gnueabihf-gcc: internal compiler error: Killed (program cc1)” 也许是因为内存不足,我不知道(还)。
标签: python beautifulsoup raspberry-pi pip lxml