Pip ist seit Jahren auf meiner Maschine, aber vor kurzem konnte ich es nicht zum Laufen bringen. Um dies zu beheben Ich lief:Pip ist installiert, aber Befehl nicht gefunden
$ sudo python get-pip.py
The directory '/Users/tomeldridge/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/tomeldridge/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 759kB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 4.3MB/s
Installing collected packages: pip, wheel
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Successfully installed pip-8.1.2 wheel-0.29.0
Aber pip immer noch nicht funktioniert:
$ pip --version
-bash: pip: command not found
Ich glaube, ich könnte dieses Problem mit $PATH
Unordnung verursacht haben.
Wenn ich laufen `sudo bash -c 'echo $ PATH' ich:
/usr/sbin:/usr/bin:/sbin:/bin:usr/local/bin
Ist das richtig?
'pip' (und die meisten Bibliotheken) wird normalerweise im Benutzerbereich installiert. Vielleicht haben Sie sich bei einem anderen Benutzerkonto angemeldet? – lucasnadalutti
was ist mit diesem Befehl: "python -m pip --version"? – guilhermecgs
können Sie überprüfen, ob es eine ausführbare Datei namens ** pip ** in '/ usr/local/opt' gibt? – JHolub