Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

How do I install libxml2 and libxslt?

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


kevinar18 at hotmail

Nov 2, 2009, 7:41 AM

Post #1 of 4 (999 views)
Permalink
How do I install libxml2 and libxslt?

I want to use the lxml library, but can't get it to work on Windows.

The following will not work:
* import libxml2
* import libxslt
* from lxml import etree

Here's the instructions:
http://codespeak.net/lxml/installation.html

* So, I run "easy_install lxml" -- that works!
* Now, it says I need to install libxml2 and libxslt... how do I do that?
...so, I download the libxml2 and libxslt pre-built Windows binaries here:
http://www.zlatkovic.com/pub/libxml/
Now what do I do with them?
I opened the zip files and copied the bin directories to Python\Lib ... like this: Python\Lib\libxml2\libxml2.dll ... that doesn't work. I copy just dll to Python\DLLs ... that doesn't work.

What now?
_________________________________________________________________
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1


nat.williams at gmail

Nov 2, 2009, 10:06 AM

Post #2 of 4 (985 views)
Permalink
Re: How do I install libxml2 and libxslt? [In reply to]

On Mon, Nov 2, 2009 at 9:41 AM, Kevin Ar18 <kevinar18 [at] hotmail> wrote:

> I want to use the lxml library, but can't get it to work on Windows.
>
> The following will not work:
> * import libxml2
> * import libxslt
> * from lxml import etree
>
> Here's the instructions:
> http://codespeak.net/lxml/installation.html
>
> * So, I run "easy_install lxml" -- that works!
> * Now, it says I need to install libxml2 and libxslt... how do I do that?
> ...so, I download the libxml2 and libxslt pre-built Windows binaries here:
> http://www.zlatkovic.com/pub/libxml/
> Now what do I do with them?
> I opened the zip files and copied the bin directories to Python\Lib ...
> like this: Python\Lib\libxml2\libxml2.dll ... that doesn't work. I copy just
> dll to Python\DLLs ... that doesn't work.
>
> What now?
>

According to the lxml installation instructions you linked, the windows lxml
binary is statically linked and you do not need to install the libraries
separately. If 'from lxml import etree' works, then you're done.

libxml2 and libxslt are C libraries, not things that you can or would
import. The joy of lxml is not having to deal with those libraries on your
own.

Nat


kevinar18 at hotmail

Nov 2, 2009, 12:44 PM

Post #3 of 4 (973 views)
Permalink
RE: How do I install libxml2 and libxslt? [In reply to]

<eb280f6e0911021006t785e7767tbf837dd239b7875e [at] mail>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0


> According to the lxml installation instructions you linked=2C
> the windows lxml binary is statically linked and you do not
> need to install the libraries separately.
The install instructions say" "You need libxml2 and libxslt" and then links=
to where to download the binaries=3B this means I need to install separate=
ly=2C right? If not=2C those are aweful instructions. :)
I can download the binaries=2C but I don't know where or how to install the=
m? Is there any instructions anywhere?
=20
> If 'from lxml import etree' works=2C then you're done.
It doesn't work. =20
_________________________________________________________________
New Windows 7: Find the right PC for you.
http://www.microsoft.com/windows/pc-scout/default.aspx?CBID=3Dwl&ocid=3DPID=
24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_pcscout:112009=
--
http://mail.python.org/mailman/listinfo/python-list


stefan_ml at behnel

Nov 4, 2009, 5:41 AM

Post #4 of 4 (956 views)
Permalink
Re: How do I install libxml2 and libxslt? [In reply to]

Kevin Ar18, 02.11.2009 21:44:
>> According to the lxml installation instructions you linked=2C
>> the windows lxml binary is statically linked and you do not
>> need to install the libraries separately.
>
> The install instructions say" "You need libxml2 and libxslt" and then links=
> to where to download the binaries=3B this means I need to install separate=
> ly=2C right? If not=2C those are aweful instructions. :)

Not being able to scroll down half a page (to the section titled "MS
Windows") is not an excuse for blaming the docs.


> I can download the binaries=2C but I don't know where or how to install the=
> m? Is there any instructions anywhere?

Yes, see the short section titled "Installation" at the top of the
installation instructions page.

Stefan
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.