Ahmad Awais

NAVIGATE


SHARE


QuickTip: How Do I Install pip on macOS or OS X?

Ahmad AwaisAhmad Awais

Even if you are not into Python there comes a time when you end up with the need of having to install pip on your macOS or OSX based computer.

Searching online would lead you to long tutorials which are not really what you need. Before 2019, all you have to do is run the following command. Sadly, this doesn’t work now. So, keep reading below.

sudo easy_install pip

JUST A NOTE: I’m teaching thousands of devs how to become VSCode Power Users β†’ βœ… This site is super fast?! It’s hosted with Kinsta on Google servers β†’

Explanation#

The macOS comes with Python installed. But to make sure that you have Python installed open the terminal and run the following command.

python --version

If this command returns a version number that means Python exists. Which also means that you already have access to easy_install; considering you are using MacOS/OSX.

Install pip on macOS#

⚠️ easy_install has been deprecated in 2019.
Check the new method below for preferred installation!

easy_install has been deprecated. Please use get-pip.py instead.

Step #1 β€” First of all download the get-pip file by running:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Step #2 β€” Now run this file to install pip

python get-pip.py

That should do it. Another gif you said? Here ya go!

Pip

Old Method#

β„Ή Now, all you have to do is run the following command.

sudo easy_install pip

After thatpip will be installed and you’ll be able to use it for installing other packages.

Let me know if you have any problems installing pip this way.

Complimentary GIF#

pip pythonPeace! ✌

πŸ”₯ I’ve just launched a course called VSCode Power User β†’ This is easily my best work ever. Check out why I worked ridiculously hard for 1.5 years and a 1,000+ hours building, recording, sharing 200+ dev tips in this VSCode.pro course!

I help businesses understand developers πŸ“Ÿ Just launched Node.js CLI Automation Course πŸ‘¨β€πŸ« Edutainer at VSCode.pro 🎩 An award-winning GitHub Star open-source engineer & advocate 🦊 Google Developers Expert Web DevRel 🌳 Node.js foundation Community Committee Outreach Lead ✌️ Author of various open-source dev-tools and software libraries used by millions of developers worldwide ⓦ WordPress Core Developer πŸ“£ TEDx Speaker πŸ™Œ Leading developers and publishing technical content for over a decade πŸ’œ Loves his wife (Maedah) ❯ Learn more β†’

Say πŸ‘‹ on Twitter @MrAhmadAwais | Subscribe to the Developers Takeaway!

πŸ“¨

Developers Takeaway

Takeaway my professional opinion on open-source, developer relations, growing your business with family, and everything in between! Delivered to your inbox a couple of times every year. I'm even funny at times. I hate spam β€” pinky-promise!

πŸ‘¨β€πŸ’»πŸ‘©β€πŸ’» 118,947 Developers Already Subscribed
Comments 130
  • Dave
    Posted on

    Dave Dave

    Reply Author

    Perfect! thank you.


  • Abhilash
    Posted on

    Abhilash Abhilash

    Reply Author

    Thanks. It worked like charm.


  • Axelle
    Posted on

    Axelle Axelle

    Reply Author

    Hi
    I manage to install PIP on my Mac. Then I wated to instal virtualenv and ive got this message :


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Did you try using sudo looks like a permission error.


  • Shiv
    Posted on

    Shiv Shiv

    Reply Author

    Had been struggling with the tutorials for installing pip as provided by amazon to support aws. And it wasn’t working. Followed your 2 easy steps and I now have pip in my mac. Thanks a lot.


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Hah! Glad I could help. I should do more such short posts, to the point to help devs with common frustrations.


  • Itsme
    Posted on

    Itsme Itsme

    Reply Author

    Worked thank you :)


  • CC
    Posted on

    CC CC

    Reply Author

    Thanks dude!


  • Aaron
    Posted on

    Aaron Aaron

    Reply Author

    Hey. My command line is asking for a password. What do I do from here?


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Oh, use the password you use to log in to your Mac. That’s the one.


  • Nigel
    Posted on

    Nigel Nigel

    Reply Author

    Simples.lol! I love it. Thanks, I was having trouble using another tutorial.


  • Adnan
    Posted on

    Adnan Adnan

    Reply Author

    HI Ahmad, This is my first time trying to use Python. So, I have to need a lil help to setup its environment.

    While trying Installing pip, It is showing error below

    Sairas-MacBook-Air:~ adnan$ sudo easy_install pip
    Password:
    Sorry, try again.

    Please guide me how can i resolve this issue?


    • Adnan
      Posted on

      Adnan Adnan

      Reply Author

      Sorry, I read your previous comments now, It worked :) Thank you for the great article. You’re always my inspiration. Keep doing good work and Stay blessed

      Thank you,


  • tara
    Posted on

    tara tara

    Reply Author

    when i do this its asking me password .
    the exact content displayed is
    we trust you have received the ususl lecture from the local system
    administrator. It usually bols down to these three things:
    #1)respect the privacy of others
    #2)think before you type
    #3)with great power comes great responsibilty


    • tara
      Posted on

      tara tara

      Reply Author

      sorry ! i read your previous comments and gave the password.


    • Robert
      Posted on

      Robert Robert

      Reply Author

      I get prompted with the Password but it won’t let me type anything. I even tried changing my password but to no effect. I can press enter but it says sorry, try again.

      Would sincerely appreciate it if you helped me with this.

      Thanks!


      • Ahmad Awais
        Posted on

        Ahmad Awais Ahmad Awais

        Reply Author

        Haha, it’s not supposed to show you anything when you are typing. So, just run the command again, when it asks for your password, just type in your pass (no *** representation there). When you’re done, press Enter.


        • Akanksha
          Posted on

          Akanksha Akanksha

          Reply Author

          Sorry for stupid question, but what password is it taking us to enter??


          • Ahmad Awais
            Posted on

            Ahmad Awais Ahmad Awais

            Author

            Enter the password you have for your Mac. The master pass you use to access your mac or the admin password that you enter for your profile.


  • tara
    Posted on

    tara tara

    Reply Author

    Thank you so much .I was breaking my head for the past 3 hours . i am able to do it now !!


  • Gayathri
    Posted on

    Gayathri Gayathri

    Reply Author

    Worked like a charm. Thanks!


  • Christoph
    Posted on

    Christoph Christoph

    Reply Author

    Thanks! Just what I needed!


  • Steve Schecter
    Posted on

    Steve Schecter Steve Schecter

    Reply Author

    I want to install pip for python 2.7 on my Mac. I think this is the python located in /usr/bin/python. Unfortunately I have already installed Anaconda, which installs python 3.6.3, and changes things so that the command python xxx.py automatically runs xxx.py using python 3.6.3. I added the alias python2=/usr/bin/python, so now the the command python2 xxx.py runs xxx.py using python 2.

    The command python –version returns Python 3.6.3 :: Anaconda custom (64-bit), and the command python2 –version returns Python 2.7.10.

    I tried sudo easy_install pip, but it installed pip in the Anaconda python 3.6.3 folder. What should I do to install pip in the correct place?

    Thanks very much!


  • Yuriy Kartuzov
    Posted on

    Yuriy Kartuzov Yuriy Kartuzov

    Reply Author

    awesome, quick and just works. I wish a lot more tutorials were like that for small easy tasks


  • Kiandra
    Posted on

    Kiandra Kiandra

    Reply Author

    I tried installing pip, but I got this error message:

    Traceback (most recent call last):
    File “/usr/local/bin/easy_install”, line 5, in
    from pkg_resources import load_entry_point
    ImportError: No module named pkg_resources

    Any ideas? I have both Python 2.7.10 and 3.6.4 installed on Mac OSX.


    • Kiandra
      Posted on

      Kiandra Kiandra

      Reply Author

      Never mind, with some more digging I was able to figure it out.


      • tony
        Posted on

        tony tony

        Reply Author

        how did you get pip? im having the same problem


  • Ahlem
    Posted on

    Ahlem Ahlem

    Reply Author

    Hi Ahmed,
    I try to install pip for python 2.7 on my Mac. But I have got this error:
    Searching for pip
    Reading https://pypi.python.org/simple/pip/
    Download error on https://pypi.python.org/simple/pip/: EOF occurred in violation of protocol (_ssl.c:590) — Some packages may not be found!
    Couldn’t find index page for ‘pip’ (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading https://pypi.python.org/simple/
    Download error on https://pypi.python.org/simple/: EOF occurred in violation of protocol (_ssl.c:590) — Some packages may not be found!
    No local packages or download links found for pip
    error: Could not find suitable distribution for Requirement.parse(‘pip’)

    I use R for writing my codes, I m not a python user. Would appreciate it if you help me with this!

    Best,


  • Ahlem
    Posted on

    Ahlem Ahlem

    Reply Author

    I have two versions (python 3.6.1 and python 2.7):
    /Library/Python/2.7/site-packages/
    I m login as admin but it still display:

    [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/test-easy-install-19065.pth

    I’m not fine with that!!


  • Ahlem
    Posted on

    Ahlem Ahlem

    Reply Author

    Hi,
    I get this error:
    Error: Python module keras was not found.

    Detected Python configuration:

    python: /usr/bin/python
    libpython: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.dylib
    pythonhome: /System/Library/Frameworks/Python.framework/Versions/2.7:/System/Library/Frameworks/Python.framework/Versions/2.7
    version: 2.7.10 (default, Feb 7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
    numpy: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy
    numpy_version: 1.8.0
    keras: [NOT FOUND]

    python versions found:
    /anaconda2/envs/r-tensorflow/bin/python
    /usr/bin/python
    /usr/local/bin/python3

    What can I do?


  • Kash
    Posted on

    Kash Kash

    Reply Author

    Hello, I get an error. Can you please help!

    sudo easy_install pip
    Traceback (most recent call last):
    File “/usr/local/bin/easy_install”, line 11, in
    load_entry_point(‘setuptools==33.1.1’, ‘console_scripts’, ‘easy_install’)()
    File “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py”, line 357, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py”, line 2394, in load_entry_point
    return ep.load()
    File “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py”, line 2108, in load
    entry = __import__(self.module_name, globals(),globals(), [‘__name__’])
    File “build/bdist.macosx-10.10-intel/egg/setuptools/__init__.py”, line 10, in
    File “build/bdist.macosx-10.10-intel/egg/setuptools/extern/__init__.py”, line 1, in
    ImportError: No module named extern


  • Zachary Samuels
    Posted on

    Zachary Samuels Zachary Samuels

    Reply Author

    I Tried this and Im getting a Password field, but I can’t type anything in it. Please help


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Just type, it won’t show you anything but will actually be typing behind the scenes. Type your PC’s password and go :)


  • Greg R
    Posted on

    Greg R Greg R

    Reply Author

    and using this I get;

    iMac:bin greg$ pip install -U pip
    Traceback (most recent call last):
    File “/Library/Frameworks/Python.framework/Versions/2.7/bin/pip”, line 7, in
    from pip import main
    ImportError: cannot import name main


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Did you install the way I said above?


      • SA
        Posted on

        SA SA

        Reply Author

        i had the same issue — not sure what to do as a python super beginner with little coding experience


        • AhmadAwais
          Posted on

          AhmadAwais AhmadAwais

          Reply Author

          I think you should try the way I have written above. πŸ’―


  • FΓ‘bio Cardoso
    Posted on

    FΓ‘bio Cardoso FΓ‘bio Cardoso

    Reply Author

    Hey I am newb at Mac environment. I’m using a hackintosh, and searching for picture n picture (pip Mac) on google I came to this website. Follow the fist part of the tutorial “sudo easy_install pip” and I realised that it isn’t related to picture n picture, xD sorry about that. May I have to uninstall this? How to do this? And do you know some way to enable picture n picture on Mac?


  • yannick
    Posted on

    yannick yannick

    Reply Author

    pc58:~ felicite$ sudo easy_install pip
    Password:
    Searching for pip
    Reading http://pypi.python.org/simple/pip/
    Couldn’t find index page for ‘pip’ (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading http://pypi.python.org/simple/
    No local packages or download links found for pip
    error: Could not find suitable distribution for Requirement.parse(‘pip’)
    pc58:~ felicite$

    JE DOIT FAIRE QUOI MTN,


  • Sam
    Posted on

    Sam Sam

    Reply Author

    Searching for pip
    Reading https://pypi.python.org/simple/pip/
    Download error on https://pypi.python.org/simple/pip/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) — Some packages may not be found!
    Couldn’t find index page for ‘pip’ (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading https://pypi.python.org/simple/
    Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) — Some packages may not be found!


    • Marvin
      Posted on

      Marvin Marvin

      Reply Author

      I’m getting this as well. =(


    • Bill
      Posted on

      Bill Bill

      Reply Author

      I am also getting this


  • Liz
    Posted on

    Liz Liz

    Reply Author

    AMAZING! I feel instantly smarter. Thank you!!


  • Bogdan
    Posted on

    Bogdan Bogdan

    Reply Author

    Thank you, Ahmad.
    I have gone through some number of sources only to find this one straight to the point – once again, thanks.


  • Atman
    Posted on

    Atman Atman

    Reply Author

    Which is the app used in GIF though?


  • omcfig
    Posted on

    omcfig omcfig

    Reply Author

    works! thanks!


  • zain
    Posted on

    zain zain

    Reply Author

    Hi, thanks for sharing the tutorial. But i get error like this:

    ➜ ~ python –version
    Python 2.7.10
    ➜ ~ sudo easy_install pip
    Searching for pip
    Reading https://pypi.python.org/simple/pip/
    Download error on https://pypi.python.org/simple/pip/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) — Some packages may not be found!
    Couldn’t find index page for ‘pip’ (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading https://pypi.python.org/simple/
    Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) — Some packages may not be found!
    No local packages or download links found for pip
    error: Could not find suitable distribution for Requirement.parse(‘pip’)

    any suggestions? thanks?


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      I’m not sure, it feels like a network issue. Maybe you should update your python via brew.


    • Vince
      Posted on

      Vince Vince

      Reply Author

      Did you ever figure out how to get around this issue? Same issue here.


  • Ron
    Posted on

    Ron Ron

    Reply Author

    Same experience here as zain. (And same python version).


  • Tarik Hamilton
    Posted on

    Tarik Hamilton Tarik Hamilton

    Reply Author

    came here organically. SEO on point πŸ™ŒπŸ½


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      I just wrote a simple post. Folks found it useful and so did Google. πŸ™Œ


  • Shashank
    Posted on

    Shashank Shashank

    Reply Author

    Works. Thank you.


  • Areeg
    Posted on

    Areeg Areeg

    Reply Author

    Thank you….It is worked :)


  • James
    Posted on

    James James

    Reply Author

    Thanks!


  • adsfsdaf
    Posted on

    adsfsdaf adsfsdaf

    Reply Author

    this really works. Thank you – i have been trying to figure it out for hours


  • H
    Posted on

    H H

    Reply Author

    Hey.. I get this..

    $ python –version
    Python 2.7.10
    $ sudo easy_install pip
    Password:
    Searching for pip
    Reading https://pypi.python.org/simple/pip/
    Download error on https://pypi.python.org/simple/pip/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) — Some packages may not be found!
    Couldn’t find index page for ‘pip’ (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading https://pypi.python.org/simple/
    Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) — Some packages may not be found!
    No local packages or download links found for pip
    error: Could not find suitable distribution for Requirement.parse(‘pip’)

    Does anyone have any suggestions?


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Maybe you can go the route of installing it with `brew` then. Homebrew is something of a package manager for OS X. Find more details on the Homebrew page. Once Homebrew is installed, run the following to install the latest Python, Pip & Setuptools:

      brew install python


      • Anil
        Posted on

        Anil Anil

        Reply Author

        Also this command was not work


  • smitha
    Posted on

    smitha smitha

    Reply Author

    I am getting following error.
    Searching for pip
    Reading https://pypi.python.org/simple/pip/
    Download error on https://pypi.python.org/simple/pip/: [Errno 60] Operation timed out — Some packages may not be found!
    Couldn’t find index page for ‘pip’ (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading https://pypi.python.org/simple/
    Download error on https://pypi.python.org/simple/: [Errno 60] Operation timed out — Some packages may not be found!
    No local packages or download links found for pip
    error: Could not find suitable distribution for Requirement.parse(‘pip’)


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Maybe you can go the route of installing it with `brew` then. Homebrew is something of a package manager for OS X. Find more details on the Homebrew page. Once Homebrew is installed, run the following to install the latest Python, Pip & Setuptools:

      brew install python


  • Shivani Priya
    Posted on

    Shivani Priya Shivani Priya

    Reply Author

    Shivanis-MacBook-Air:usr shivanipriya$ sudo easy_install pip
    Searching for pip
    Best match: pip 18.1
    pip 18.1 is already the active version in easy-install.pth
    Installing pip script to /usr/local/bin
    error: [Errno 2] No such file or directory: ‘/usr/local/bin/pip’

    This error is coming when i try to install it. The version is being shown as 2.7 but this command isn’t working.


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Maybe you can go the route of installing it with `brew` then. Homebrew is something of a package manager for OS X. Find more details on the Homebrew page. Once Homebrew is installed, run the following to install the latest Python, Pip & Setuptools:

      brew install python


  • Grey
    Posted on

    Grey Grey

    Reply Author

    Awesome!!!! Crisp, To the Point!!! Bulls Eye!!!


  • Benjamin Gordon
    Posted on

    Benjamin Gordon Benjamin Gordon

    Reply Author

    Once I do the command:

    sudo easy_install pip

    It gives the a prompt saying Password: (with a lock next to it)

    What’s this for? Is this an admin thing?


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Enter the pass of your computer the one you enter when logging into your laptop. It won’t show anything as you type β€” just type and press enter.


  • Ness
    Posted on

    Ness Ness

    Reply Author

    After seeing your tutorial if I tipe in: pip install numpy -it still doesn’t work :/


  • Asad
    Posted on

    Asad Asad

    Reply Author

    easy install…. great


  • Jon
    Posted on

    Jon Jon

    Reply Author

    Hi thanks for the tip. I’m curious what shell you are using to get the colorized commands (as you type), as well as the cool promptline.

    Thanks!


  • Brian Schaitkin
    Posted on

    Brian Schaitkin Brian Schaitkin

    Reply Author

    Ahmad,

    Thanks for this tutorial. Unfortunately my knowledge of coding seems to far surpass my knowledge of how PCs work. Even after installing homebrew, sudo easy_install pip does not work. Still getting the same “Index page” issue as other users. I also tried copying the pip zip from https://pypi.org/simple/pip/into my python application folder but that also does not work. This seems to be a common issue with no clear solution, any suggestions would be extremely welcome.

    Thanks,
    Brian


  • Carlos
    Posted on

    Carlos Carlos

    Reply Author

    Hi,

    In my mac, I Installed python 3.7.2.
    But when I installed PIP, it has been installed over python 2.7.

    HOw can I install pip over 3.7.2?

    Thanks for your help


  • Hector
    Posted on

    Hector Hector

    Reply Author

    Hi Ahmad,

    What is the simplest method to fix this error (Yes, I’ve browsed the web to find many different options, although convoluted and since your practice simplicity, i’d figured i’d ask, Thanks)?

    $ sudo easy_install pip
    Searching for pip
    Reading https://pypi.python.org/simple/pip/
    Download error on https://pypi.python.org/simple/pip/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) — Some packages may not be found!
    Couldn’t find index page for ‘pip’ (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading https://pypi.python.org/simple/
    Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) — Some packages may not be found!
    No local packages or download links found for pip
    error: Could not find suitable distribution for Requirement.parse(‘pip’)
    $


  • Muhammed
    Posted on

    Muhammed Muhammed

    Reply Author

    Just had to add that in order to install on the mac. I had to add –user at the end. I believe that system dependent.
    The error I got was

    Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/pip-19.0.3-py2.7.egg/EGG-INFO/PKG-INFO’
    Consider using the `–user` option or check the permissions.


    • CRGREEN
      Posted on

      CRGREEN CRGREEN

      Reply Author

      What I did to fix this “Permission denied” error:
      I opened /Library/ (NOT the home user Library folder; not the root/System/Library folder; the root (/) Library folder) and selected the Python folder, did command-i to bring up the “Python Info” window. Saw that only system had Read/Write permissions – “wheel” had Read only, “everyone” had Read only. So I unlocked the lower right lock icon (gave password), added my home admin account using the plus button on the left, then used the cog icon to the right of the plus/minus buttons and chose “Apply to enclosed items…”. Then I ran the terminal command again and it successfully installed.


  • Matteo Gagliardi
    Posted on

    Matteo Gagliardi Matteo Gagliardi

    Reply Author

    I searched a lot on the web and this is the only solution that worked for me, well done!


  • zahra
    Posted on

    zahra zahra

    Reply Author

    I’m getting error about permmison


  • Riju
    Posted on

    Riju Riju

    Reply Author

    Thanks a lot. Was at a dead end until I saw this.
    You are awesome !


  • Ryan
    Posted on

    Ryan Ryan

    Reply Author

    Hi Ahmad,

    I first should thank you for sharing your knowledge, it is really something profound!

    I downloaded pip using `python get-pip.py` but I got the following message:

    “`ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/urllib3-1.25.3.dist-info’
    Consider using the `–user` option or check the permissions.“`

    How can I fix this issue? And how to use `–user`

    Note: I tried the old method: `sudo easy_install pip` It worked but when I run `pip install requests` for some program, I get the above ERORR!

    Can you help me solve this error please?

    Thanks very much!


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Try the new method but use install it with `sudo` so your user would have the permissions. That’s what I can guess.


  • Ryan
    Posted on

    Ryan Ryan

    Reply Author

    Hi,

    Thanks Ahmad and thanks @Muhammed, I solved my issue by running
    `pip install requests –user` So, the only thing I had to do is to add `–user` to the end of the command.

    Cheers guys :)


  • July
    Posted on

    July July

    Reply Author

    Hi,

    When I type the password, it showed like this.
    ‘Processing pip
    error: Not a recognized archive type: pip’

    How can I solve this issue?

    Thanks a lot


  • Alberto GarcΓ­a Silva
    Posted on

    Alberto GarcΓ­a Silva Alberto GarcΓ­a Silva

    Reply Author

    Hi, when I Try to run:

    python3 get-pip.py

    IΒ΄m getting this error:

    Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=’pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)) – skipping
    ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
    ERROR: No matching distribution found for pip
    WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
    Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=’pypi.org’, port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)) – skipping


  • Maritza Fisher
    Posted on

    Maritza Fisher Maritza Fisher

    Reply Author

    This was so helpful!!!


  • Ricardo Trevisan
    Posted on

    Ricardo Trevisan Ricardo Trevisan

    Reply Author

    Thank you so much, Ahmad!


  • Rohan Joshi
    Posted on

    Rohan Joshi Rohan Joshi

    Reply Author

    Thank you so much, I have been banging my head for 2 days because i accidentally deleted a few packages and I was not able to install pip, virtualenv because I did not have pkg_resouces. And my system was asking me for pip (Which I did not have) to install this package and I was in a deadlock. However the method provided by you has saved me.


  • Oliver
    Posted on

    Oliver Oliver

    Reply Author

    I love your Terminal theme! Which is it please?!


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      I have built a complete suite of themes called πŸ¦„ Shades of Purple β€” you can find all about it on my uses page.


  • Alex De Lara
    Posted on

    Alex De Lara Alex De Lara

    Reply Author

    Great. Thanks !


  • Ryan
    Posted on

    Ryan Ryan

    Reply Author

    I tried to run curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py but below is shown.
    File “”, line 1
    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    ^
    SyntaxError: invalid syntax

    May I know how to solve it? Thanks


  • Brando Miranda
    Posted on

    Brando Miranda Brando Miranda

    Reply Author

    Btw `easy_install` is deprecated, this blog needs updating…


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      I have already updated the article 10 months ago. Please read it till the end.


  • Daniel Ruiz
    Posted on

    Daniel Ruiz Daniel Ruiz

    Reply Author

    Awesome! Thank you so much!


  • Freddie Landeros
    Posted on

    Freddie Landeros Freddie Landeros

    Reply Author

    Ahmad, thank you very much, I appreciate you sharing your knowledge.


  • Teralyn
    Posted on

    Teralyn Teralyn

    Reply Author

    I successfully used sudo easy_install for a different package (PyPDF2) when pip was not working properly for some reason. Thanks very much!!


  • Alex
    Posted on

    Alex Alex

    Reply Author

    Could you please kindly share your shell font in the second gif, thanks a lot!


  • Akilos
    Posted on

    Akilos Akilos

    Reply Author

    What’s the theme of the terminal?


  • Anil
    Posted on

    Anil Anil

    Reply Author

    Bro get-pip is not working in my Mac osx
    It’s says commond not found.


  • Andrew
    Posted on

    Andrew Andrew

    Reply Author

    What tool(s) do you use to generate the GIF recordings of your terminal sessions?


  • E. McIntosh
    Posted on

    E. McIntosh E. McIntosh

    Reply Author

    Hello, this was very useful, thank you, however, after entering; ‘sudo easy_install pip’

    my terminal responds with; ‘error: Not a recognized archive type: pip’

    Any reason for this?

    Thanks for your response.


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Check the full post for the solution #2.


  • Alan
    Posted on

    Alan Alan

    Reply Author

    Oh man! 3 days researching and finally got here, the solution! thanks a lot, I really appreciate this post.


  • Ryan
    Posted on

    Ryan Ryan

    Reply Author

    hey i am watching a video and it want me to use this command import pyautogui, sleep but it is not working any suggestions?


  • Ravi
    Posted on

    Ravi Ravi

    Reply Author

    so happy right now, after going through all those pages finally it worked thanks to you, really appreciate this.


  • Darren Chin-Yue
    Posted on

    Darren Chin-Yue Darren Chin-Yue

    Reply Author

    Awesome, thank you


  • Noah Farrell Ross
    Posted on

    Noah Farrell Ross Noah Farrell Ross

    Reply Author

    Thank you