簡體   English   中英

raspberry pi無法安裝lxml pip包

[英]raspberry pi unable to install lxml pip package

我在安裝BeautifulSoup4包之后嘗試安裝lxml包。

在終端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以查看是否已安裝包。 不,它不存在。

好吧你可以打開python並嘗試導入它。 但如果它的python 3試試這個

sudo apt-get install python3-lxml

否則它

sudo apt-get install python-lxml

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM