I think I'm too stupid for installing LXML Lib on my System. Please can anyone help me with instructions for stupid people? I found a lot of instruction, but they did not help me much.
I looked at LXML-Homepage For installation I need pip 1.4.1? I downloaded it... But, how can I install it?
Unzip pip-1.4.1.tar.gz
Then I opened the setup.py with my Python Shell. Run the modul:
Traceback (most recent call last):
File "C:\................\dist\pip-1.4.1\setup.py", line 5, in <module>
from setuptools import setup, find_packages
ImportError: No module named 'setuptools'
Ok.. now I thought I need setuptools... Downloaded setuptools-1.4.1-py2.py3-none-any.whl
Unziped it.. run the easy_install.py
with my python shell
SystemExit: error: No urls, filenames, or requirements specified
Same error if started in windows command console. What should I do?
If you on Windows, why not to use binary packages with normal installers? You can find them on this page: http://www.lfd.uci.edu/~gohlke/pythonlibs/
You can also use anaconda. Once you have it installed ( http://continuum.io/downloads ) you can just run conda install lxml
to install lxml. It's also very useful for packages like numpy and scipy, which can sometimes be a pain to install on Windows.
These instructions are for Windows7 or Windows8 with Python3.3 specifically as the original poster requested. However , they should work for various versions as the releases of python and other respective prerequisites change/evolve:
C:\\python33\\
when asked during the Python Installation Wizard C:\\python33\\
and C:\\python33\\scripts
folders to the system path by adding those directories to the PATH
environment variable from the Control Panel > System > Advanced System Settings link (Advanced Tab) > Environmental Variables (Button) . c:\\openssl-win32\\bin
(or similar) directory to your PATH
, the same way you added C:\\python33
and C:\\python33\\scripts
above. get-pip.py
should install Setuptools for you), but, just in case...
ez_setup.py
HERE and save it in C:\\python33\\scripts
C:\\python33\\scripts> python ez_setup.py
get-pip.py
from HERE and save it in C:\\python33\\scripts
C:\\python33\\scripts> python get-pip.py
LXML 3.3.3
from HERE for your version of Windows and PC architecture Download lxml based on your version dependencies from here,
http://www.lfd.uci.edu/~gohlke/pythonlibs/djcobkfp/lxml-3.4.4-cp27-none-win32.whl # replace lxml version based on your dependencies.. http://www.lfd.uci.edu/~gohlke/pythonlibs/ and open your command prompt open lcoation Downloads or where file Downloaded in cmd..
that install using,
pip install lxml-3.4.4-cp34-none-win_amd64.whl # this is eg name may vary based on your python or lxml version.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.