2016-04-02 9 views
9

Ich möchte pip auf OS X installieren Also habe ich heruntergeladen und installiert Python 3.4, und danach installieren Sie pip mit dem Skript von der Python Packaging Authority zur Verfügung gestellt; aber wenn ich laufe pip bekam ich einen Befehl nicht gefundenInstallieren Sie pip auf OS X

MacBook-Pro-de-paquirrin:Home paquirrin$ sudo curl -O https://bootstrap.pypa.io/get-pip.py 
Password: 
Sorry, try again. 
Password: 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
100 1487k 100 1487k 0  0 783k  0 0:00:01 0:00:01 --:--:-- 783k 
MacBook-Pro-de-paquirrin:Home paquirrin$ sudo python3 get-pip.py 
The directory '/Users/paquirrin/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/paquirrin/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.1-py2.py3-none-any.whl (1.2MB) 
    100% |████████████████████████████████| 1.2MB 718kB/s 
Collecting wheel 
    Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB) 
    100% |████████████████████████████████| 71kB 1.6MB/s 
Installing collected packages: pip, wheel 
    Found existing installation: pip 6.0.8 
    Uninstalling pip-6.0.8: 
     Successfully uninstalled pip-6.0.8 
Successfully installed pip-8.1.1 wheel-0.29.0 
MacBook-Pro-de-paquirrin:Home paquirrin$ sudo pip install awsebcli 
sudo: pip: command not found 
+0

nicht 'sudo PIP3 awsebcli' Arbeit installieren? – snakecharmerb

+2

Doppelte Frage von http://StackOverflow.com/Questions/17271319/Installing-Pip-on-Mac-OS-X – iSkore

+1

Lösung ohne Verwendung von brauen: sudo easy_install pip – vishal

Antwort

3

Keine Ahnung, aber this crossbar installation tutorial scheint Ihr Thema vollständig zu bedecken.

Plus: Sie installieren Ihre pip lokal. Versuchen Sie bin/pip aus dem Ordner, den Sie den curl Befehl ausgeführt haben.

+0

Danke. Es hat für mich funktioniert :) – Woppi

15

Der einfachste Weg, den ich fand, war die Verwendung von Hausbrauen, es installieren alle grundlegenden Python und Pip auch. Aber benutze auch Macports.

brew install python 

benutzte ich die Antworten von der Post, wenn Sie weitere Hilfe benötigen: How do I install pip on macOS or OS X?

Verwandte Themen