Auf meinen saemtlichen Linux-Installationen verwende ich bisher problemlos python-pip zum installieren von Modulen.
Aktuelle versuche ich es auf Scientific Linux 6.3 (RHEL6), wo Python 2.6 standardmaessig installiert ist. Aus dem Repo habe ich auch python-pip installiert sowie gcc, python-devel und setuptools.
Als erstes habe ich dann numpy mit python-pip installiert, ging auch problemlos. Dann habe ich es mit matplotlib versucht und bekomme den folgenden Fehler:
Code: Alles auswählen
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/net/home/mars/gds/build/matplotlib/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-1v9HVU-record/install-record.txt failed with error code 1
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 124, in main
self.run(options, args)
File "/usr/lib/python2.6/site-packages/pip/commands/install.py", line 182, in run
requirement_set.install(install_options, global_options)
File "/usr/lib/python2.6/site-packages/pip/req.py", line 1029, in install
requirement.install(install_options, global_options)
File "/usr/lib/python2.6/site-packages/pip/req.py", line 559, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 239, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/net/home/mars/gds/build/matplotlib/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-1v9HVU-record/install-record.txt failed with error code 1
Viele Gruesse
frix