sudo easy_install pip not working











up vote
0
down vote

favorite












I'm having trouble executing the sudo easy_install pip command on my mac. I'm not behind a firewall. I'm using python version 2.7.10. The version of macOS Sierra is 10.12.4. Here is the error I receive:



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')









share|improve this question






















  • Have you tried updating openSSL? stackoverflow.com/questions/44316292/…
    – Jonas
    May 31 at 3:12






  • 1




    Possible duplicate of ssl.SSLError: tlsv1 alert protocol version
    – phd
    May 31 at 7:00










  • @phd Could you point me to the part that is a duplication? It appears that the linked question is referring to someone trying to create a python script. I'm trying to install pip.
    – DroidT
    May 31 at 23:33










  • update OpenSSL…updated Python to the latest version You need to update everything related to SSL — OpenSSL, Python and pip.
    – phd
    Jun 1 at 0:40















up vote
0
down vote

favorite












I'm having trouble executing the sudo easy_install pip command on my mac. I'm not behind a firewall. I'm using python version 2.7.10. The version of macOS Sierra is 10.12.4. Here is the error I receive:



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')









share|improve this question






















  • Have you tried updating openSSL? stackoverflow.com/questions/44316292/…
    – Jonas
    May 31 at 3:12






  • 1




    Possible duplicate of ssl.SSLError: tlsv1 alert protocol version
    – phd
    May 31 at 7:00










  • @phd Could you point me to the part that is a duplication? It appears that the linked question is referring to someone trying to create a python script. I'm trying to install pip.
    – DroidT
    May 31 at 23:33










  • update OpenSSL…updated Python to the latest version You need to update everything related to SSL — OpenSSL, Python and pip.
    – phd
    Jun 1 at 0:40













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm having trouble executing the sudo easy_install pip command on my mac. I'm not behind a firewall. I'm using python version 2.7.10. The version of macOS Sierra is 10.12.4. Here is the error I receive:



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')









share|improve this question













I'm having trouble executing the sudo easy_install pip command on my mac. I'm not behind a firewall. I'm using python version 2.7.10. The version of macOS Sierra is 10.12.4. Here is the error I receive:



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')






python pip easy-install






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 31 at 3:03









DroidT

1,20421420




1,20421420












  • Have you tried updating openSSL? stackoverflow.com/questions/44316292/…
    – Jonas
    May 31 at 3:12






  • 1




    Possible duplicate of ssl.SSLError: tlsv1 alert protocol version
    – phd
    May 31 at 7:00










  • @phd Could you point me to the part that is a duplication? It appears that the linked question is referring to someone trying to create a python script. I'm trying to install pip.
    – DroidT
    May 31 at 23:33










  • update OpenSSL…updated Python to the latest version You need to update everything related to SSL — OpenSSL, Python and pip.
    – phd
    Jun 1 at 0:40


















  • Have you tried updating openSSL? stackoverflow.com/questions/44316292/…
    – Jonas
    May 31 at 3:12






  • 1




    Possible duplicate of ssl.SSLError: tlsv1 alert protocol version
    – phd
    May 31 at 7:00










  • @phd Could you point me to the part that is a duplication? It appears that the linked question is referring to someone trying to create a python script. I'm trying to install pip.
    – DroidT
    May 31 at 23:33










  • update OpenSSL…updated Python to the latest version You need to update everything related to SSL — OpenSSL, Python and pip.
    – phd
    Jun 1 at 0:40
















Have you tried updating openSSL? stackoverflow.com/questions/44316292/…
– Jonas
May 31 at 3:12




Have you tried updating openSSL? stackoverflow.com/questions/44316292/…
– Jonas
May 31 at 3:12




1




1




Possible duplicate of ssl.SSLError: tlsv1 alert protocol version
– phd
May 31 at 7:00




Possible duplicate of ssl.SSLError: tlsv1 alert protocol version
– phd
May 31 at 7:00












@phd Could you point me to the part that is a duplication? It appears that the linked question is referring to someone trying to create a python script. I'm trying to install pip.
– DroidT
May 31 at 23:33




@phd Could you point me to the part that is a duplication? It appears that the linked question is referring to someone trying to create a python script. I'm trying to install pip.
– DroidT
May 31 at 23:33












update OpenSSL…updated Python to the latest version You need to update everything related to SSL — OpenSSL, Python and pip.
– phd
Jun 1 at 0:40




update OpenSSL…updated Python to the latest version You need to update everything related to SSL — OpenSSL, Python and pip.
– phd
Jun 1 at 0:40












1 Answer
1






active

oldest

votes

















up vote
1
down vote













I found a solution using brew to install pyenv. Solution was found here but I only needed the parts up to when it uses pip.



# Install PyEnv (https://github.com/pyenv/pyenv#installation)
$ brew update
$ brew install pyenv

# Initialize pyenv using bash_profile
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.bash_profile
# or using zshrc
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.zshrc

# restart the shell
$ exec "$SHELL"

# Install Python 2.7
$ pyenv install 2.7.14
$ pyenv local 2.7.14


After completing those steps I ran sudo easy_install pip again and eureka! It worked.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50616037%2fsudo-easy-install-pip-not-working%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    I found a solution using brew to install pyenv. Solution was found here but I only needed the parts up to when it uses pip.



    # Install PyEnv (https://github.com/pyenv/pyenv#installation)
    $ brew update
    $ brew install pyenv

    # Initialize pyenv using bash_profile
    $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.bash_profile
    # or using zshrc
    $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.zshrc

    # restart the shell
    $ exec "$SHELL"

    # Install Python 2.7
    $ pyenv install 2.7.14
    $ pyenv local 2.7.14


    After completing those steps I ran sudo easy_install pip again and eureka! It worked.






    share|improve this answer

























      up vote
      1
      down vote













      I found a solution using brew to install pyenv. Solution was found here but I only needed the parts up to when it uses pip.



      # Install PyEnv (https://github.com/pyenv/pyenv#installation)
      $ brew update
      $ brew install pyenv

      # Initialize pyenv using bash_profile
      $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.bash_profile
      # or using zshrc
      $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.zshrc

      # restart the shell
      $ exec "$SHELL"

      # Install Python 2.7
      $ pyenv install 2.7.14
      $ pyenv local 2.7.14


      After completing those steps I ran sudo easy_install pip again and eureka! It worked.






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        I found a solution using brew to install pyenv. Solution was found here but I only needed the parts up to when it uses pip.



        # Install PyEnv (https://github.com/pyenv/pyenv#installation)
        $ brew update
        $ brew install pyenv

        # Initialize pyenv using bash_profile
        $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.bash_profile
        # or using zshrc
        $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.zshrc

        # restart the shell
        $ exec "$SHELL"

        # Install Python 2.7
        $ pyenv install 2.7.14
        $ pyenv local 2.7.14


        After completing those steps I ran sudo easy_install pip again and eureka! It worked.






        share|improve this answer












        I found a solution using brew to install pyenv. Solution was found here but I only needed the parts up to when it uses pip.



        # Install PyEnv (https://github.com/pyenv/pyenv#installation)
        $ brew update
        $ brew install pyenv

        # Initialize pyenv using bash_profile
        $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.bash_profile
        # or using zshrc
        $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; thenn eval "$(pyenv init -)"nfinexport PATH="~/.pyenv/bin:$PATH"' >> ~/.zshrc

        # restart the shell
        $ exec "$SHELL"

        # Install Python 2.7
        $ pyenv install 2.7.14
        $ pyenv local 2.7.14


        After completing those steps I ran sudo easy_install pip again and eureka! It worked.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 1 at 0:14









        DroidT

        1,20421420




        1,20421420






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50616037%2fsudo-easy-install-pip-not-working%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Schultheiß

            Verwaltungsgliederung Dänemarks

            Liste der Kulturdenkmale in Wilsdruff