Installing easy_install… to get to installing lxml

后端 未结 5 1228
难免孤独
难免孤独 2021-02-01 18:42

I\'ve come to grips with the fact that ElementTree isn\'t going to do what I want it to do. I\'ve checked out the documentation for lxml, and it appears that it will serve my pu

5条回答
  •  离开以前
    2021-02-01 18:54

    Make sure that all the following packages are installed on your system first:

    gcc gcc-c++ python-devel libxml2 libxml2-dev libxslt libxslt-dev
    

    You should be able to install them using some variant of: sudo apt-get install sudo yum install

    Only after all of the above have been successfully installed should you attempt to run:

    sudo pip install lxml
    

提交回复
热议问题