Note that there are some explanatory texts on larger screens.

plurals
  1. POlibxml install error using pip
    primarykey
    data
    text
    <p>This is my error:</p> <pre><code>(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install lxml Downloading/unpacking lxml Running setup.py egg_info for package lxml Building lxml version 2.3. Building without Cython. ERROR: /bin/sh: xslt-config: not found ** make sure the development packages of libxml2 and libxslt are installed ** Using build configuration of libxslt Installing collected packages: lxml Running setup.py install for lxml Building lxml version 2.3. Building without Cython. ERROR: /bin/sh: xslt-config: not found ** make sure the development packages of libxml2 and libxslt are installed ** Using build configuration of libxslt 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 src/lxml/lxml.etree.c:4: fatal error: Python.h: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1 Complete output from command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/lxml/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-jOhgvD-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6: Building lxml version 2.3. Building without Cython. ERROR: /bin/sh: xslt-config: not found ** make sure the development packages of libxml2 and libxslt are installed ** Using build configuration of libxslt running install 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 src/lxml/lxml.etree.c:4: fatal error: Python.h: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- Command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/lxml/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-jOhgvD-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6 failed with error code 1 Storing complete log in /home/zjm1126/.pip/pip.log </code></pre> <p>What can I do?</p> <p><strong>updated:</strong></p> <pre><code>(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install lxml Downloading/unpacking lxml Running setup.py egg_info for package lxml Building lxml version 2.3. Building without Cython. Using build configuration of libxslt 1.1.26 Building against libxml2/libxslt in the following directory: /usr/lib Installing collected packages: lxml Running setup.py install for lxml Building lxml version 2.3. Building without Cython. Using build configuration of libxslt 1.1.26 Building against libxml2/libxslt in the following directory: /usr/lib building 'lxml.etree' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.6/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c:4: fatal error: Python.h: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1 Complete output from command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/lxml/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-NJw2ws-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6: Building lxml version 2.3. Building without Cython. Using build configuration of libxslt 1.1.26 Building against libxml2/libxslt in the following directory: /usr/lib running install 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/libxml2 -I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.6/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c:4: fatal error: Python.h: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- Command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/lxml/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-NJw2ws-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6 failed with error code 1 Storing complete log in /home/zjm1126/.pip/pip.log </code></pre> <p>the log:</p> <pre><code>------------------------------------------------------------ /home/zjm1126/zjm_test/mysite/bin/pip run on Thu Mar 3 17:07:27 2011 Downloading/unpacking mysql-python Running setup.py egg_info for package mysql-python running egg_info creating pip-egg-info/MySQL_python.egg-info writing pip-egg-info/MySQL_python.egg-info/PKG-INFO writing top-level names to pip-egg-info/MySQL_python.egg-info/top_level.txt writing dependency_links to pip-egg-info/MySQL_python.egg-info/dependency_links.txt writing pip-egg-info/MySQL_python.egg-info/PKG-INFO writing top-level names to pip-egg-info/MySQL_python.egg-info/top_level.txt writing dependency_links to pip-egg-info/MySQL_python.egg-info/dependency_links.txt writing manifest file 'pip-egg-info/MySQL_python.egg-info/SOURCES.txt' warning: manifest_maker: standard file '-c' not found reading manifest file 'pip-egg-info/MySQL_python.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'MANIFEST' warning: no files found matching 'ChangeLog' warning: no files found matching 'GPL' writing manifest file 'pip-egg-info/MySQL_python.egg-info/SOURCES.txt' Installing collected packages: mysql-python Running setup.py install for mysql-python Running command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-XuVIux-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6 running install running build running build_py creating build creating build/lib.linux-i686-2.6 copying _mysql_exceptions.py -&gt; build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/__init__.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/converters.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/connections.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/cursors.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/release.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/times.py -&gt; build/lib.linux-i686-2.6/MySQLdb creating build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/CR.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/ER.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/REFRESH.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants running build_ext building '_mysql' extension creating build/temp.linux-i686-2.6 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-i686-2.6/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX In file included from _mysql.c:29: pymemcompat.h:10: fatal error: Python.h: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1 Complete output from command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-XuVIux-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6: running install running build running build_py creating build creating build/lib.linux-i686-2.6 copying _mysql_exceptions.py -&gt; build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/__init__.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/converters.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/connections.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/cursors.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/release.py -&gt; build/lib.linux-i686-2.6/MySQLdb copying MySQLdb/times.py -&gt; build/lib.linux-i686-2.6/MySQLdb creating build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/__init__.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/CR.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/ER.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/FLAG.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/REFRESH.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -&gt; build/lib.linux-i686-2.6/MySQLdb/constants running build_ext building '_mysql' extension creating build/temp.linux-i686-2.6 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-i686-2.6/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX In file included from _mysql.c:29: pymemcompat.h:10: fatal error: Python.h: 没有那个文件或目录 compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- Command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-XuVIux-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6 failed with error code 1 Exception information: Traceback (most recent call last): File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/basecommand.py", line 130, in main self.run(options, args) File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/commands/install.py", line 228, in run requirement_set.install(install_options, global_options) File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 1043, in install requirement.install(install_options, global_options) File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 559, in install cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False) File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/__init__.py", line 249, in call_subprocess % (command_desc, proc.returncode)) InstallationError: Command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-XuVIux-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6 failed with error code 1 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload