2015-12-11 15 views
6

मैं (पिप lxml स्थापित) खिड़कियों पर lxml स्थापित करने के लिए कोशिश कर रहा हूँ पर अजगर lxml (और libxml2) स्थापित नहीं कर सकता, लेकिन मैं निम्नलिखित त्रुटि मिलती रहती है:खिड़कियों

***** 
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed? 
**************************************************************************** 

Command "C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Us 
ers\\meme\\AppData\\Local\\Temp\\pip-build-m_doxfaj\\lxml\\setup.py';exec(comp 
ile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fi 
le__, 'exec'))" install --record C:\Users\meme\AppData\Local\Temp\pip-ekkhc0id 
-record\install-record.txt --single-version-externally-managed --compile" failed 
with error code 1 in C:\Users\meme\AppData\Local\Temp\pip-build-m_doxfaj\lxml 

मैं एक डाउनलोड करने के लिए कोशिश की है यहां से विंडोज़ के लिए बाइनरी फाइलें (ftp://ftp.zlatkovic.com/libxml/) और उन्हें पथ में जोड़ना लेकिन यह मदद नहीं करता है।

मैनुअल डाउनलोड lxml पहिया (cp34 के लिए http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml) फाइल भी निम्न त्रुटि लॉग के साथ स्थापित करने के लिए कोशिश कर रहा है पर विफल रहता है:

Exception: 
Traceback (most recent call last): 
    File "C:\Python34\lib\site-packages\pip\basecommand.py", line 211, in main 
    status = self.run(options, args) 
    File "C:\Python34\lib\site-packages\pip\commands\install.py", line 311, in run 
    root=options.root_path, 
    File "C:\Python34\lib\site-packages\pip\req\req_set.py", line 646, in install 
    **kwargs 
    File "C:\Python34\lib\site-packages\pip\req\req_install.py", line 803, in install 
    self.move_wheel_files(self.source_dir, root=root) 
    File "C:\Python34\lib\site-packages\pip\req\req_install.py", line 998, in move_wheel_files 
    isolated=self.isolated, 
    File "C:\Python34\lib\site-packages\pip\wheel.py", line 242, in move_wheel_files 
    name, user=user, home=home, root=root, isolated=isolated 
    File "C:\Python34\lib\site-packages\pip\locations.py", line 182, in distutils_scheme 
    d.parse_config_files() 
    File "C:\Python34\lib\distutils\dist.py", line 394, in parse_config_files 
    parser.read(filename) 
    File "C:\Python34\lib\configparser.py", line 672, in read 
    self._read(fp, filename) 
    File "C:\Python34\lib\configparser.py", line 993, in _read 
    for lineno, line in enumerate(fp, start=1): 
    File "C:\Python34\lib\encodings\cp1250.py", line 23, in decode 
    return codecs.charmap_decode(input,self.errors,decoding_table)[0] 
UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 2193: character maps to <undefined> 

मैं 64 Win7 मशीन पर python34 32 बिट का उपयोग कर रहा हूँ।

+0

संभावित प्राप्त डुप्लिकेट [प्राप्त करना "लाइब्रेरी libxml2 में फ़ंक्शन xmlCheckVersion नहीं मिला। Libxml2 स्थापित है?" पाइप के माध्यम से lxml स्थापित करते समय] (https://stackoverflow.com/questions/33785755/getting-could-not-find-function-xmlcheckversion-in-library-libxml2-is-libxml2) –

उत्तर

4

आप here से बाइनरी आज़मा सकते हैं। डाउनलोड बाइनरी स्थापित करने के लिए पहले pip install wheel और फिर pip install <filename.whl> करें।

+0

मैंने पहिया से त्रुटि लॉग जोड़ा है ओपी में स्थापित करें। – eciu

संबंधित मुद्दे