How to re-install lxml?

后端 未结 4 1031
一个人的身影
一个人的身影 2020-12-09 16:45

Python version and Device used

  • Python 2,7.5
  • Mac 10.7.5
  • BeautifulSoup 4.2.1.

I\'m following the BeautifulSoup tu

4条回答
  •  轮回少年
    2020-12-09 17:25

    If you are using Python2.7 in Ubuntu/Debian, this worked for me:

    $ sudo apt-get build-dep python-lxml
    $ sudo pip install lxml 
    

    Test it like:

    mona@pascal:~/computer_vision/image_retrieval$ python
    Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
    [GCC 4.8.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import lxml
    

提交回复
热议问题