我试图在安装BeautifulSoup4
包后安装lxml
包。raspberry pi无法安装lxml pip包
在终端I型:
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:内部编译器错误:杀死(程序cc1)”也许由于缺乏内存,我不知道(还)。 –