python2.7 installs a fake pip3.5





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I have tried installing pip 8.1.2 through python2.7 as follows:



root@ubuntu18test:~# python2.7 -m easy_install pip==8.1.2
Searching for pip==8.1.2
Reading https://pypi.python.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/9c/32/004ce0852e0a127f07f358b715015763273799bd798956fa930814b60f39/pip-8.1.2-py2.py3-none-any.whl#sha256=6464dd9809fb34fc8df2bf49553bb11dac4c13d2ffa7a4f8038ad86a4ccb92a1
Best match: pip 8.1.2
Processing pip-8.1.2-py2.py3-none-any.whl
Installing pip-8.1.2-py2.py3-none-any.whl to /usr/local/lib/python2.7/dist-packages
writing requirements to /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/EGG-INFO/requires.txt
Adding pip 8.1.2 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip3.5 script to /usr/local/bin
Installing pip3 script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg
Processing dependencies for pip==8.1.2
Finished processing dependencies for pip==8.1.2


However, as you can see from the output, it has created wrappers named pip3 and pip3.5 instead of pip2 and pip2.7. Checking pip3.5 --version reveals that it is still using python2.7:



root@ubuntu18test:~# pip3.5 --version
pip 8.1.2 from /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg (python 2.7)


And checking python3 --version reveals that it is not even Python 3.5:



root@ubuntu18test:~# python3 --version
Python 3.6.7


I need Python 2.7 and pip 8.1.2 with a working wrapper script for "legacy reasons", though pip might be upgradable with a small amount of effort.



Is there any way to get this specific version of pip for Python 2.7 with the correct wrapper script names?










share|improve this question





























    0















    I have tried installing pip 8.1.2 through python2.7 as follows:



    root@ubuntu18test:~# python2.7 -m easy_install pip==8.1.2
    Searching for pip==8.1.2
    Reading https://pypi.python.org/simple/pip/
    Downloading https://files.pythonhosted.org/packages/9c/32/004ce0852e0a127f07f358b715015763273799bd798956fa930814b60f39/pip-8.1.2-py2.py3-none-any.whl#sha256=6464dd9809fb34fc8df2bf49553bb11dac4c13d2ffa7a4f8038ad86a4ccb92a1
    Best match: pip 8.1.2
    Processing pip-8.1.2-py2.py3-none-any.whl
    Installing pip-8.1.2-py2.py3-none-any.whl to /usr/local/lib/python2.7/dist-packages
    writing requirements to /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/EGG-INFO/requires.txt
    Adding pip 8.1.2 to easy-install.pth file
    Installing pip script to /usr/local/bin
    Installing pip3.5 script to /usr/local/bin
    Installing pip3 script to /usr/local/bin

    Installed /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg
    Processing dependencies for pip==8.1.2
    Finished processing dependencies for pip==8.1.2


    However, as you can see from the output, it has created wrappers named pip3 and pip3.5 instead of pip2 and pip2.7. Checking pip3.5 --version reveals that it is still using python2.7:



    root@ubuntu18test:~# pip3.5 --version
    pip 8.1.2 from /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg (python 2.7)


    And checking python3 --version reveals that it is not even Python 3.5:



    root@ubuntu18test:~# python3 --version
    Python 3.6.7


    I need Python 2.7 and pip 8.1.2 with a working wrapper script for "legacy reasons", though pip might be upgradable with a small amount of effort.



    Is there any way to get this specific version of pip for Python 2.7 with the correct wrapper script names?










    share|improve this question

























      0












      0








      0








      I have tried installing pip 8.1.2 through python2.7 as follows:



      root@ubuntu18test:~# python2.7 -m easy_install pip==8.1.2
      Searching for pip==8.1.2
      Reading https://pypi.python.org/simple/pip/
      Downloading https://files.pythonhosted.org/packages/9c/32/004ce0852e0a127f07f358b715015763273799bd798956fa930814b60f39/pip-8.1.2-py2.py3-none-any.whl#sha256=6464dd9809fb34fc8df2bf49553bb11dac4c13d2ffa7a4f8038ad86a4ccb92a1
      Best match: pip 8.1.2
      Processing pip-8.1.2-py2.py3-none-any.whl
      Installing pip-8.1.2-py2.py3-none-any.whl to /usr/local/lib/python2.7/dist-packages
      writing requirements to /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/EGG-INFO/requires.txt
      Adding pip 8.1.2 to easy-install.pth file
      Installing pip script to /usr/local/bin
      Installing pip3.5 script to /usr/local/bin
      Installing pip3 script to /usr/local/bin

      Installed /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg
      Processing dependencies for pip==8.1.2
      Finished processing dependencies for pip==8.1.2


      However, as you can see from the output, it has created wrappers named pip3 and pip3.5 instead of pip2 and pip2.7. Checking pip3.5 --version reveals that it is still using python2.7:



      root@ubuntu18test:~# pip3.5 --version
      pip 8.1.2 from /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg (python 2.7)


      And checking python3 --version reveals that it is not even Python 3.5:



      root@ubuntu18test:~# python3 --version
      Python 3.6.7


      I need Python 2.7 and pip 8.1.2 with a working wrapper script for "legacy reasons", though pip might be upgradable with a small amount of effort.



      Is there any way to get this specific version of pip for Python 2.7 with the correct wrapper script names?










      share|improve this question














      I have tried installing pip 8.1.2 through python2.7 as follows:



      root@ubuntu18test:~# python2.7 -m easy_install pip==8.1.2
      Searching for pip==8.1.2
      Reading https://pypi.python.org/simple/pip/
      Downloading https://files.pythonhosted.org/packages/9c/32/004ce0852e0a127f07f358b715015763273799bd798956fa930814b60f39/pip-8.1.2-py2.py3-none-any.whl#sha256=6464dd9809fb34fc8df2bf49553bb11dac4c13d2ffa7a4f8038ad86a4ccb92a1
      Best match: pip 8.1.2
      Processing pip-8.1.2-py2.py3-none-any.whl
      Installing pip-8.1.2-py2.py3-none-any.whl to /usr/local/lib/python2.7/dist-packages
      writing requirements to /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/EGG-INFO/requires.txt
      Adding pip 8.1.2 to easy-install.pth file
      Installing pip script to /usr/local/bin
      Installing pip3.5 script to /usr/local/bin
      Installing pip3 script to /usr/local/bin

      Installed /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg
      Processing dependencies for pip==8.1.2
      Finished processing dependencies for pip==8.1.2


      However, as you can see from the output, it has created wrappers named pip3 and pip3.5 instead of pip2 and pip2.7. Checking pip3.5 --version reveals that it is still using python2.7:



      root@ubuntu18test:~# pip3.5 --version
      pip 8.1.2 from /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg (python 2.7)


      And checking python3 --version reveals that it is not even Python 3.5:



      root@ubuntu18test:~# python3 --version
      Python 3.6.7


      I need Python 2.7 and pip 8.1.2 with a working wrapper script for "legacy reasons", though pip might be upgradable with a small amount of effort.



      Is there any way to get this specific version of pip for Python 2.7 with the correct wrapper script names?







      18.04 pip python-2.7






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 5 at 9:13









      Score_UnderScore_Under

      32416




      32416






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          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%2faskubuntu.com%2fquestions%2f1131387%2fpython2-7-installs-a-fake-pip3-5%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131387%2fpython2-7-installs-a-fake-pip3-5%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

          Category:香港粉麵

          List *all* the tuples!

          Channel [V]