PIP-Problem unter Scientific Linux

Probleme bei der Installation?
Antworten
Benutzeravatar
frixhax
User
Beiträge: 39
Registriert: Donnerstag 21. April 2011, 14:06

Hallo Leute!

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
Ich habe schon rumgegoogelt, aber bin nach wie vor ratlos, warum das nicht funktioniert. Hat jemand eine Idee?

Viele Gruesse
frix
Benutzeravatar
cofi
Python-Forum Veteran
Beiträge: 4432
Registriert: Sonntag 30. März 2008, 04:16
Wohnort: RGFybXN0YWR0

frixhax hat geschrieben:

Code: Alles auswählen

error: command 'gcc' failed with exit status 1
Da ist dein Hinweis. Woran es liegt fehlt in deinem Post. Ich tippe mal auf fehlende Python Header.
Benutzeravatar
frixhax
User
Beiträge: 39
Registriert: Donnerstag 21. April 2011, 14:06

Danke, es fehlten manche X11-Pakete in der Systeminstallation.
Antworten