PIP: Cannot fetch index base URL

Probleme bei der Installation?
Antworten
chpo7234
User
Beiträge: 35
Registriert: Dienstag 29. September 2015, 10:19

Hallo Leute,

ich habe Probleme mit PIP. Ich kann darüber einfach keine Module beziehen.. Ich arbeite mit Ubuntu 14.04 LTS.

Die Installation von Python und PIP führe ich wie folgt aus:
apt-get install python-pip python-dev build-essential

Output:

Code: Alles auswählen

Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
python-pip ist schon die neueste Version.
build-essential ist schon die neueste Version.
python-dev ist schon die neueste Version.
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  linux-headers-3.16.0-50 linux-headers-3.16.0-50-generic
  linux-image-3.16.0-50-generic linux-image-extra-3.16.0-50-generic
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 45 nicht aktualisiert.
Danach:
pip install --upgrade pip

Output:

Code: Alles auswählen

Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip in /usr/lib/python2.7/dist-packages
Downloading/unpacking pip
Cleaning up...
No distributions at all found for pip in /usr/lib/python2.7/dist-packages
Storing debug log for failure in /home/pohl/.pip/pip.log
Der pip.log zeigt nun folgendes:

Code: Alles auswählen

------------------------------------------------------------
/usr/local/bin/pip run on Fri Jan 29 07:32:20 2016
Getting page https://pypi.python.org/simple/pip/
Could not fetch URL https://pypi.python.org/simple/pip/: timed out
Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip in /usr/lib/python2.7/dist-packages
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: timed out
Will skip URL https://pypi.python.org/simple/ when looking for download links for pip in /usr/lib/python2.7/dist-packages
Cannot fetch index base URL https://pypi.python.org/simple/
URLs to search for versions for pip in /usr/lib/python2.7/dist-packages:
* https://pypi.python.org/simple/pip/
Getting page https://pypi.python.org/simple/pip/
Could not fetch URL https://pypi.python.org/simple/pip/: timed out
Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip in /usr/lib/python2.7/dist-packages
Could not find any downloads that satisfy the requirement pip in /usr/lib/python2.7/dist-packages
Downloading/unpacking pip
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
No distributions at all found for pip in /usr/lib/python2.7/dist-packages
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1177, in prepare_files
    raise not_found
DistributionNotFound: No distributions at all found for pip in /usr/lib/python2.7/dist-packages
Hat jemand eine Ahnung, wie ich das beheben kann? Kann das Problem daran liegen, dass ich mit einem Proxy verbunden bin und er deshalb die Seiten nicht ansteuern kann? Mit LYNX kann ich schließlich auch keine Seiten ansteuern...

Lieben Gruß
BlackJack

@chpo7234: Wenn Du nicht direkt ins Netz beziehungsweise an HTTP-Server da draussen kommst, dann wird es sehr wahrscheinlich daran liegen. Schon mal die Optionen von `pip` angeschaut?
Benutzeravatar
noisefloor
User
Beiträge: 3856
Registriert: Mittwoch 17. Oktober 2007, 21:40
Wohnort: WW
Kontaktdaten:

Hallo,

kommt die Meldung so bei _jeder_ Paketinstallation oder "nur" bei `pip install --upgrade pip`? Das manuelle Upgrade der aus den Paketquellen installierten pip-Version ist IMHO so wie so suboptiomal. Wenn du eine aktuelleres pip möchtest, dann wäre IMHO die komplette manuelle Installation sinnvoller. Wie das geht, ist im Wiki von ubuntuusers.de beschrieben.

Gruß, noisefloor
Antworten