web-dev-qa-db-fra.com

Installer pip sur OS X

Je veux installer pip sur OS X J'ai donc téléchargé et installé Python 3.4, et ensuite, installez pip en utilisant le script fourni par Python Packaging Authority; mais quand je lance pip, j'ai un commande introuvable

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

Je ne sais pas, mais ce tutoriel d'installation de la barre transversale semble couvrir complètement votre sujet.

Plus: Vous installez votre pip localement. Essayez bin/pip à partir du dossier, vous avez exécuté la commande curl.

8
ansi_lumen

La manière la plus simple que j'ai trouvée était d'utiliser home-brew, il installe tous les éléments de base python et pip aussi. Mais n'hésitez pas à utiliser macports aussi.

brew install python

J'ai utilisé les réponses du message, si vous avez besoin de plus d'aide: Comment installer pip sur macOS ou OS X?

18
Siddharth Wagle