विभिन्न मार्गों का प्रयास किया लेकिन कोई किस्मत नहीं। मैं 10.7.4 के साथ एमबीपी का उपयोग कर रहा हूं। मुझे आखिरी बार याद नहीं आया कि मेरे मैक पर पाइथन के साथ कुछ भी स्थापित करने में इतनी सारी समस्याएं थीं। कृपया मेरी स्थानीय मशीन पर lxml का उपयोग करने में मदद करें और एसवीएन प्रतिबद्धताओं पर भरोसा न करें, लिनक्स मशीन पर दूरस्थ रूप से चलाने के अपडेट।मैक ओएस एक्स 10.7.4 पर मैं lxml कैसे स्थापित करूं? मैंने सभी विकल्पों को समाप्त कर दिया है
$ sudo STATIC_DEPS=true /usr/bin/easy_install-2.7 lxml
Password:
Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3.4
Downloading http://lxml.de/files/lxml-2.3.4.tgz
Processing lxml-2.3.4.tgz
Running lxml-2.3.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mbyEtk/lxml-2.3.4/egg-dist-tmp-O_t_3P
Building lxml version 2.3.4.
Latest version of libiconv is 1.14
Downloading libiconv into libs/libiconv-1.14.tar.gz
error: [Errno 60] Operation timed out
कोई भाग्य
$ python setup.py build
$ STATIC_DEPS=true sudo easy_install --allow-hosts=lxml.de,*.python.org lxml
$ sudo pip install lxml
llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/usr/include/libxml2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.7-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
unable to execute llvm-gcc-4.2: No such file or directory
error: command 'llvm-gcc-4.2' failed with exit status 1
आपका '~ .pip/pip.log' क्या कहता है? – mata
वह सी संकलक गायब है। – larsks
@mata: -bash: /Users/ThinkCode/.pip/pip.log: ऐसी कोई फ़ाइल या निर्देशिका – ThinkCode