ubuntu 11.04 lxml import etree problem for custom python

前端 未结 5 597
名媛妹妹
名媛妹妹 2020-12-19 00:06

ubuntu 11.04 has native python2.7 i build python2.5 from source to /usr/local/python2.5/bin, and try to install lxml for my custom python2.5 install. Also i use virtualenv.

5条回答
  •  感动是毒
    2020-12-19 00:19

    This problem is usually caused by building Python without using the --enable-unicode=ucs4 option on the ./configure command.

    To make sure you do it right, delete the existing Python build directory and start building again by unzipping the Python tarball.

    Also, delete the existing Python 2.5 install directory /usr/local/python2.5/ and rebuild everything else that you built such as lxml. Any extensions that use compiled components will look up the Python build configuration so if you don't rebuild everything you will have mismatched pieces.

提交回复
热议问题