The latest version is lxml 2.3.1, released 2011-09-25,
1.download it
2.extract it ,put it in the /home/user/Python-3.2.2/libxml2-2.7.8
3.cd /home/user/Python-3.2.2/libxml2-2.7.8
4. ./configure
5.make
6.sudo make install
when i finished
~$ python3.2
Python 3.2.2 (default, Oct 24 2011, 10:33:35)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxml
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named lxml
there is still the problem!!
------------------ 原始邮件 ------------------
发件人: "Terry Reedy"<tjre...@udel.edu>;
发送时间: 2011年10月24日(星期一) 中午12:58
收件人: "python-list"<python-list@python.org>;
抄送: "lxml"<l...@lxml.de>;
主题: Re: install lxml
On 10/24/2011 12:02 AM, 水静流深 wrote:
> there are two python versions in my computer,
> python2.7 is the default,python3.2 is the second install.
> for python2.7
> ~$python
> Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
> [GCC 4.5.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import lxml
> >>>
>
> for python3.2
> ~$python3.2
> Python 3.2.2 (default, Oct 24 2011, 10:33:35)
> [GCC 4.5.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import lxml
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named lxml
>
> i want to install lxml in python3.2.
> how can i do?
Put a 3.2 version of lxml in the 3.2 Lib/site-packages directory.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list