2016-04-02 17 views
9

पर पाइप स्थापित करें मैं ओएस एक्स पर पाइप स्थापित करना चाहता हूं इसलिए मैंने पायथन 3.4 डाउनलोड और स्थापित किया, और बाद में, पाइथन पैकेजिंग अथॉरिटी द्वारा प्रदान की गई स्क्रिप्ट का उपयोग करके पाइप इंस्टॉल करें; लेकिन मुझे मिल गया जब मैं पिप चलाने एक आदेशओएस एक्स

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

'sudo pip3 awsebcli' काम स्थापित करता है:

brew install python 

मैं आपको और अधिक मदद की जरूरत है, के बाद से जवाब का इस्तेमाल किया? – snakecharmerb

+2

http://stackoverflow.com/questions/17271319/installing-pip-on-mac-os-x – iSkore

+1

ब्रू का उपयोग किए बिना समाधान का डुप्लिकेट प्रश्न: sudo easy_install pip – vishal

उत्तर

3

पता नहीं मिला है, लेकिन this crossbar installation tutorial पूरी तरह से अपने विषय को कवर करने लगता है।

प्लस: आप स्थानीय रूप से अपना pip इंस्टॉल करें। curl कमांड वाले फ़ोल्डर में से bin/pip आज़माएं।

+0

धन्यवाद। यह मेरे लिए काम किया :) – Woppi

15

घर-ब्रू का उपयोग करने का सबसे आसान तरीका यह था कि यह सभी मूल पायथन और पीआईपी भी स्थापित करता है। लेकिन मैकपोर्ट का भी उपयोग करने में संकोच न करें। How do I install pip on macOS or OS X?