मुझे बस कुछ पैकेज की आवश्यकता है जो मेजबान मशीन (और मैं और लिनक्स ... में मौजूद नहीं हैं ... हमने ... साथ में अधिक समय नहीं बिताया ...)।लिनक्स पर प्रशासनिक अधिकारों के बिना पाइथन के लिए lxml कैसे स्थापित करें?
मैं उनकी तरह स्थापित करने के लिए प्रयोग किया है:
# from the source
python setup.py install --user
या
# with easy_install
easy_install prefix=~/.local package
लेकिन यह lxml साथ काम नहीं करता। मैं निर्माण के दौरान त्रुटियों की एक बहुत कुछ मिलता है:
x:~/lxml-2.3$ python setup.py build
Building lxml version 2.3.
Building without Cython.
ERROR: /bin/sh: xslt-config: command not found
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
running build
running build_py
running build_ext
building 'lxml.etree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.6/src/lxml/lxml.etree.o -w
In file included from src/lxml/lxml.etree.c:227:
src/lxml/etree_defs.h:9:31: error: libxml/xmlversion.h: No such file or directory
src/lxml/etree_defs.h:11:4: error: #error the development package of libxml2 (header files etc.) is not installed correctly
src/lxml/etree_defs.h:13:32: error: libxslt/xsltconfig.h: No such file or directory
src/lxml/etree_defs.h:15:4: error: #error the development package of libxslt (header files etc.) is not installed correctly
src/lxml/lxml.etree.c:230:29: error: libxml/encoding.h: No such file or directory
src/lxml/lxml.etree.c:231:28: error: libxml/chvalid.h: No such file or directory
src/lxml/lxml.etree.c:232:25: error: libxml/hash.h: No such file or directory
...
src/lxml/lxml.etree.c:55179: error: Б─≤xmlNodeБ─≥ undeclared (first use in this function)
src/lxml/lxml.etree.c:55179: error: Б─≤__pyx_v_c_nodeБ─≥ undeclared (first use in this function)
src/lxml/lxml.etree.c:55184: error: Б─≤_node_to_node_functionБ─≥ undeclared (first use in this function)
src/lxml/lxml.etree.c:55184: error: expected Б─≤;Б─≥ before Б─≤__pyx_v_next_elementБ─≥
src/lxml/lxml.etree.c:55251: error: Б─≤struct __pyx_obj_4lxml_5etree__ReadOnlyProxyБ─≥ has no member named Б─≤_c_nodeБ─≥
...
http://lxml.de/installation.html कहना है कि वह कुछ निर्भरता है। लेकिन प्रशासनिक अधिकारों के बिना उन्हें कैसे स्थापित करें?
क्या आपने वर्चुअलएन्व में यह कोशिश की है? – karantan