Python-Pip " Installieren "Ei" - Fehler (Pandas und andere Module)

Probleme bei der Installation einige python-Module (z.B. pandas) und hatte auch einige Probleme bei der Installation von ipython notebook.

Dieser Fehler scheint zu kommen, bevor Sie für andere Leute (Python-pip installieren schlägt fehl: Ungültiger Befehl egg_info), aber Sie wurden mit Python 2.7, während ich bin mit 2.6 (standardmäßig mit meinem Mac OS 10.6). Auch habe ich versucht easy_install -U setuptools und pip install --upgrade-setuptools aber weder gearbeitet.

Dies ist der Fehler, bekomme ich für die Installation pandas:

Command python setup.py egg_info failed with error code 1 in /private/var/folders/Wm/WmmbYincEnuCrAMtGBudAk+++TM/-Tmp-/pip_build_AWal/pandas
Storing debug log for failure in /Users/AWal/Library/Logs/pip.log

Für die Installation von iPython, dies ist die Fehlermeldung, die ich bekomme:

Exception:
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/req.py", line 671, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/req.py", line 901, in move_wheel_files
    pycompile=self.pycompile,
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/wheel.py", line 341, in move_wheel_files
    generated.extend(maker.make_multiple(['%s = %s' % kv for kv in console.items()]))
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/_vendor/distlib/scripts.py", line 316, in make_multiple
    filenames.extend(self.make(specification, options))
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/_vendor/distlib/scripts.py", line 305, in make
    self._make_script(entry, filenames, options=options)
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/_vendor/distlib/scripts.py", line 209, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/_vendor/distlib/scripts.py", line 189, in _write_script
    self._fileop.write_binary_file(outname, script_bytes)
  File "/Library/Python/2.6/site-packages/pip-1.5.4-py2.6.egg/pip/_vendor/distlib/util.py", line 384, in write_binary_file
    with open(path, 'wb') as f:
IOError: [Errno 13] Permission denied: '/usr/local/bin/sphinx-apidoc'

Storing debug log for failure in /Users/AWal/Library/Logs/pip.log

Irgendwelche Gedanken auf, was zu tun ist?

UPDATE:

Wenn ich sudo pip install pandas (ein anderes Modul, dass kann ich nicht installieren), bekomme ich eine lange lange traceback-mit dem Ende Fehlermeldung:

RuntimeError: Broken toolchain: cannot link a simple C program

Und traceback (eine Probe davon von den 100 Zeilen) sieht wie folgt aus:

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/tmp/pip_build_root/pandas/setup.py", line 619, in <module>

    **setuptools_kwargs)

  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 113, in setup

  File "build/bdist.macosx-10.6-universal/egg/setuptools/dist.py", line 266, in __init__

  File "build/bdist.macosx-10.6-universal/egg/setuptools/dist.py", line 312, in fetch_build_eggs

  File "build/bdist.macosx-10.6-universal/egg/pkg_resources/__init__.py", line 753, in resolve

  File "build/bdist.macosx-10.6-universal/egg/pkg_resources/__init__.py", line 1005, in best_match

  File "build/bdist.macosx-10.6-universal/egg/pkg_resources/__init__.py", line 1017, in obtain

  File "build/bdist.macosx-10.6-universal/egg/setuptools/dist.py", line 379, in fetch_build_egg

  File "build/bdist.macosx-10.6-universal/egg/setuptools/command/easy_install.py", line 619, in easy_install
  • versuchen Sie es mit admin-rechten
  • Habe versucht sudo pip install pandas (ein weiteres Modul, das nicht funktioniert), und ich habe den gleichen Fehler: der Befehl python setup.py egg_info fehlgeschlagen mit Fehler code 1 in /private/tmp/pip_build_root/pandas die Speicherung von debug-log für Fehler in " /Benutzer/AWal/Library/Logs/pip.melden
  • Dies könnte damit zusammenhängen stackoverflow.com/questions/22388519/...
  • Haben Sie XCode (und die Werkzeuge, die es mit sich bringt) installiert auf Ihrem OS X?
  • Ich glaube nicht, xCode, die ich finden konnte. Gibt es eine Möglichkeit, leicht zu installieren?
  • Ja, Sie können einfach laden Sie es aus dem Mac App Store. Nicht 100% sicher, aber ich glaube, installieren und öffnen es bringt alle C-basierten tools kompilieren zu Leben.

InformationsquelleAutor user3736169 | 2015-01-01
Schreibe einen Kommentar