Was ist das richtige format zu aktualisieren, pip3, wenn die Standard-pip pip2?

Entwickle ich für beide Python 2 und 3.

So, ich habe beide pip2 und pip3.

Bei der Verwendung pip3 - ich erhalten dieses upgrade Anfrage (letzten zwei Zeilen):

$ pip3 install arrow
Requirement already satisfied (use --upgrade to upgrade): arrow in c:\program files (x86)\python3.5.1\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in c:\program files (x86)\python3.5.1\lib\site-packages (from arrow)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in c:\program files (x86)\python3.5.1\lib\site-packages (from python-dateutil->arrow)
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Mein Standard - pip ist für Python 2, nämlich:

$  python -m pip install --upgrade pip
Requirement already up-to-date: pip in /usr/lib/python2.7/site-packages

Jedoch keiner der folgenden explizite Befehle erfolgreich in die Modernisierung der Python 3 pip:

$  python -m pip3 install --upgrade pip3
/bin/python: No module named pip3

$  python -m pip install --upgrade pip3
Collecting pip3
  Could not find a version that satisfies the requirement pip3 (from versions: )
No matching distribution found for pip3

$  python -m pip install --upgrade pip3.4
Collecting pip3.4
  Could not find a version that satisfies the requirement pip3.4 (from versions: )
No matching distribution found for pip3.4

Was ist der richtige Befehl zum aktualisieren pip3, wenn es nicht die Standard-pip?

Umgebung:

$ python3 -V
Python 3.4.3
$ uname -a
CYGWIN_NT-6.1-WOW 2.5.2(0.297/5/3) 2016-06-23 14:27 i686 Cygwin
  • Normalerweise verwende ich python3 -m pip install --upgrade pip
InformationsquelleAutor boardrider | 2016-08-24
Schreibe einen Kommentar