Hi, I need to install lxml, but it fails. I install it with: pip install lxml. I have Python 3.4 installed on a Windows 7, x64 computer. I have Visual Studio 2010 installed as required by Python 3.4. I get this error message: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\users\ashhab\appdata\local\temp\pip-build-0r0v7a \lxml\src\lxml\includes -IC:\Python33\include -IC:\Python33\include /Tcsrc\lxml\ lxml.etree.c /Fobuild\temp.win32-3.3\Release\src\lxml\lxml.etree.obj -w cl : Command line warning D9025 : overriding '/W3' with '/w' lxml.etree.c c:\users\ashhab\appdata\local\temp\pip-build-0r0v7a\lxml\src\lxml\includes\e tree_defs.h(14) : fatal error C1083: Cannot open include file: 'libxml/xmlversio n.h': No such file or directory C:\Python33\lib\distutils\dist.py:258: UserWarning: Unknown distribution opt ion: 'bugtrack_url' warnings.warn(msg) error: command '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\ cl.exe"' failed with exit status 2 Can someone help me to install lxml in Windows 7? Regards, Björn
Am .07.2015, 14:07 Uhr, schrieb Bjorn Holmgren <bjorn.holmgren@gmail.com>:
Hi, I need to install lxml, but it fails. I install it with: pip install lxml. I have Python 3.4 installed on a Windows 7, x64 computer. I have Visual Studio 2010 installed as required by Python 3.4.
There are binary builds of lxml that you can use. I've documented the steps needed to install these: http://openpyxl.readthedocs.org/en/2.3.0-b1/windows-development.html#lxml Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226
Thanks Clark. I followed the steps. At step 3 i get a new error though, see below. Any ideas how to solve this? Command "C:\Python34\Scripts\python.exe -c "import setuptools, tokenize;__file__ ='C:\\Users\\Ashhab\\AppData\\Local\\Temp\\pip-build-_6eprfmy\\lxml\\setup.py';e xec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n '), file, 'exec'))" install --record C:\Users\Ashhab\AppData\Local\Temp\pip- j10t1c9m-record\install-record.txt --single-version-externally-managed --compile --install-headers C:\Python34\include\site\python3.4\lxml" failed with error co de 1 in C:\Users\Ashhab\AppData\Local\Temp\pip-build-_6eprfmy\lxml
On 13 Jul 2015, at 18:07, Charlie Clark <charlie.clark@clark-consulting.eu> wrote:
Am .07.2015, 14:07 Uhr, schrieb Bjorn Holmgren <bjorn.holmgren@gmail.com>:
Hi, I need to install lxml, but it fails. I install it with: pip install lxml. I have Python 3.4 installed on a Windows 7, x64 computer. I have Visual Studio 2010 installed as required by Python 3.4.
There are binary builds of lxml that you can use. I've documented the steps needed to install these:
http://openpyxl.readthedocs.org/en/2.3.0-b1/windows-development.html#lxml
Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 _________________________________________________________________ Mailing list for the lxml Python XML toolkit - http://lxml.de/ lxml@lxml.de https://mailman-mail5.webfaction.com/listinfo/lxml
Am .07.2015, 10:49 Uhr, schrieb Bjorn Holmgren <bjorn.holmgren@gmail.com>:
Thanks Clark. I followed the steps. At step 3 i get a new error though, see below. Any ideas how to solve this?
What command did you enter? What version of pip are you using? Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226
This command: python setup.py develop I have pip version 7.1
On 14 Jul 2015, at 14:24, Charlie Clark <charlie.clark@clark-consulting.eu> wrote:
Am .07.2015, 10:49 Uhr, schrieb Bjorn Holmgren <bjorn.holmgren@gmail.com>:
Thanks Clark. I followed the steps. At step 3 i get a new error though, see below. Any ideas how to solve this?
What command did you enter? What version of pip are you using?
Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 _________________________________________________________________ Mailing list for the lxml Python XML toolkit - http://lxml.de/ lxml@lxml.de https://mailman-mail5.webfaction.com/listinfo/lxml
Am .07.2015, 12:49 Uhr, schrieb Bjorn Holmgren <bjorn.holmgren@gmail.com>:
This command: python setup.py develop
With which project?
I have pip version 7.1
Assuming you have downloaded the correct binary for your system to the "downloads" folder pip install --no-index --find-links downloads lxml Otherwise: easy_install downloaded_lxml_file Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226
I tried bot, both gets errors. For instance:
easy_install downloaded_lxml_file
Got the error: C:\Users\Ashhab>easy_install downloaded_lxml_file Searching for downloaded-lxml-file Reading https://pypi.python.org/simple/downloaded_lxml_file/ Reading https://pypi.python.org/simple/downloaded-lxml-file/ Couldn't find index page for 'downloaded_lxml_file' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ No local packages or download links found for downloaded-lxml-file error: Could not find suitable distribution for Requirement.parse('downloaded-lx ml-file’)
On 14 Jul 2015, at 17:05, Charlie Clark <charlie.clark@clark-consulting.eu> wrote:
Am .07.2015, 12:49 Uhr, schrieb Bjorn Holmgren <bjorn.holmgren@gmail.com>:
This command: python setup.py develop
With which project?
I have pip version 7.1
Assuming you have downloaded the correct binary for your system to the "downloads" folder
pip install --no-index --find-links downloads lxml
Otherwise:
easy_install downloaded_lxml_file
Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 _________________________________________________________________ Mailing list for the lxml Python XML toolkit - http://lxml.de/ lxml@lxml.de https://mailman-mail5.webfaction.com/listinfo/lxml
Am .07.2015, 14:25 Uhr, schrieb Bjorn Holmgren <bjorn.holmgren@gmail.com>:
I tried bot, both gets errors. For instance:
easy_install downloaded_lxml_file
Sorry, but you're obviously so new to Python that it's very difficult to help you. "downloaded_lxml_file" refers to the file that you have presumably downloaded. For Python 3.4 and x86_64 that should be something like "lxml‑3.4.4‑cp34‑none‑win_amd64.whl". Where is this file? Which folder are you currently in? Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226
participants (2)
-
Bjorn Holmgren
-
Charlie Clark