[英]raspberry pi unable to install lxml pip package
I am trying to install lxml
package after i installed BeautifulSoup4
package. 我在安装BeautifulSoup4
包之后尝试安装lxml
包。
In the terminal i type: 在终端i中键入:
sudo pip install lxml
This is what i get 这就是我得到的
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
And then it just hangs there at the last line for a very long long time, I have to exit by pressing CTRL+C . 然后它会在最后一行停留很长一段时间,我必须按CTRL + C退出。
Can someone tell me what it really means? 有人能告诉我它的真正含义吗?
I then try pip freeze
to see if the package is installed. 然后我尝试pip freeze
以查看是否已安装包。 No, it is not there. 不,它不存在。
well you could open python and try importing it. 好吧你可以打开python并尝试导入它。 But if its python 3 try this 但如果它的python 3试试这个
sudo apt-get install python3-lxml
else its 否则它
sudo apt-get install python-lxml
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.