how to link pip to python3

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am using Debian GNU/Linux 7.11 (wheezy), the default python is 2.7.3 and pip is 1.1 (which I have updated to 9.x). I installed python 3.6 to run some scripts, this error pops out,



Traceback (most recent call last):
File "place_fixed2_debugged.py", line 2, in <module>
import requests
ModuleNotFoundError: No module named 'requests'


so I tried pip install requests, and it shows it is already installed, then I tried to install request module manually, I downloaded requests-2.18.4 and run python3 setup.py, this error shows up,



File "setup.py", line 9, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'


Then I triedapt-get install python3-setuptools it shows also installed python3-setuptools is already installed as well.



I think the problem here is, pip and apt are installing all python related packages under a path links to the default python2.7, both requests module and setuptool are not linked to python3.



I tried virtualenv, it requires zlib module, pip install zlib gives



root@localhost:~/Python-3.6.0# pip install zlib
Collecting zlib
/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Could not find a version that satisfies the requirement zlib (from versions: )
No matching distribution found for zlib


Is there any other more manageable ways to let me just link pip to python3.6? I don't really want to setup a virtualenv, thank you!







share|improve this question


























    up vote
    1
    down vote

    favorite












    I am using Debian GNU/Linux 7.11 (wheezy), the default python is 2.7.3 and pip is 1.1 (which I have updated to 9.x). I installed python 3.6 to run some scripts, this error pops out,



    Traceback (most recent call last):
    File "place_fixed2_debugged.py", line 2, in <module>
    import requests
    ModuleNotFoundError: No module named 'requests'


    so I tried pip install requests, and it shows it is already installed, then I tried to install request module manually, I downloaded requests-2.18.4 and run python3 setup.py, this error shows up,



    File "setup.py", line 9, in <module>
    from setuptools import setup
    ModuleNotFoundError: No module named 'setuptools'


    Then I triedapt-get install python3-setuptools it shows also installed python3-setuptools is already installed as well.



    I think the problem here is, pip and apt are installing all python related packages under a path links to the default python2.7, both requests module and setuptool are not linked to python3.



    I tried virtualenv, it requires zlib module, pip install zlib gives



    root@localhost:~/Python-3.6.0# pip install zlib
    Collecting zlib
    /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
    SNIMissingWarning
    /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
    InsecurePlatformWarning
    Could not find a version that satisfies the requirement zlib (from versions: )
    No matching distribution found for zlib


    Is there any other more manageable ways to let me just link pip to python3.6? I don't really want to setup a virtualenv, thank you!







    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am using Debian GNU/Linux 7.11 (wheezy), the default python is 2.7.3 and pip is 1.1 (which I have updated to 9.x). I installed python 3.6 to run some scripts, this error pops out,



      Traceback (most recent call last):
      File "place_fixed2_debugged.py", line 2, in <module>
      import requests
      ModuleNotFoundError: No module named 'requests'


      so I tried pip install requests, and it shows it is already installed, then I tried to install request module manually, I downloaded requests-2.18.4 and run python3 setup.py, this error shows up,



      File "setup.py", line 9, in <module>
      from setuptools import setup
      ModuleNotFoundError: No module named 'setuptools'


      Then I triedapt-get install python3-setuptools it shows also installed python3-setuptools is already installed as well.



      I think the problem here is, pip and apt are installing all python related packages under a path links to the default python2.7, both requests module and setuptool are not linked to python3.



      I tried virtualenv, it requires zlib module, pip install zlib gives



      root@localhost:~/Python-3.6.0# pip install zlib
      Collecting zlib
      /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
      SNIMissingWarning
      /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning
      Could not find a version that satisfies the requirement zlib (from versions: )
      No matching distribution found for zlib


      Is there any other more manageable ways to let me just link pip to python3.6? I don't really want to setup a virtualenv, thank you!







      share|improve this question














      I am using Debian GNU/Linux 7.11 (wheezy), the default python is 2.7.3 and pip is 1.1 (which I have updated to 9.x). I installed python 3.6 to run some scripts, this error pops out,



      Traceback (most recent call last):
      File "place_fixed2_debugged.py", line 2, in <module>
      import requests
      ModuleNotFoundError: No module named 'requests'


      so I tried pip install requests, and it shows it is already installed, then I tried to install request module manually, I downloaded requests-2.18.4 and run python3 setup.py, this error shows up,



      File "setup.py", line 9, in <module>
      from setuptools import setup
      ModuleNotFoundError: No module named 'setuptools'


      Then I triedapt-get install python3-setuptools it shows also installed python3-setuptools is already installed as well.



      I think the problem here is, pip and apt are installing all python related packages under a path links to the default python2.7, both requests module and setuptool are not linked to python3.



      I tried virtualenv, it requires zlib module, pip install zlib gives



      root@localhost:~/Python-3.6.0# pip install zlib
      Collecting zlib
      /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
      SNIMissingWarning
      /usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning
      Could not find a version that satisfies the requirement zlib (from versions: )
      No matching distribution found for zlib


      Is there any other more manageable ways to let me just link pip to python3.6? I don't really want to setup a virtualenv, thank you!









      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 '17 at 13:35









      Sanket

      1032




      1032










      asked Nov 20 '17 at 9:05









      tomu

      182




      182




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          You need to run sudo apt install pip3






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405729%2fhow-to-link-pip-to-python3%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            You need to run sudo apt install pip3






            share|improve this answer
























              up vote
              0
              down vote



              accepted










              You need to run sudo apt install pip3






              share|improve this answer






















                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                You need to run sudo apt install pip3






                share|improve this answer












                You need to run sudo apt install pip3







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 '17 at 23:52









                PuzzledCuber

                938




                938



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405729%2fhow-to-link-pip-to-python3%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?