Windows 10 pip not installing Python2 packages while Python 3.6 is installed The 2019 Stack...

Are children permitted to help build the Beis Hamikdash?

Did Section 31 appear in Star Trek: The Next Generation?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Do these rules for Critical Successes and Critical Failures seem Fair?

What is the closest word meaning "respect for time / mindful"

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

"as much details as you can remember"

Is this app Icon Browser Safe/Legit?

Is flight data recorder erased after every flight?

Loose spokes after only a few rides

Write faster on AT24C32

One word riddle: Vowel in the middle

Is there a symbol for a right arrow with a square in the middle?

Can a rogue use sneak attack with weapons that have the thrown property even if they are not thrown?

Why isn't the circumferential light around the M87 black hole's event horizon symmetric?

What is the most effective way of iterating a std::vector and why?

Pokemon Turn Based battle (Python)

Is three citations per paragraph excessive for undergraduate research paper?

What is the meaning of the verb "bear" in this context?

Have you ever entered Singapore using a different passport or name?

Right tool to dig six foot holes?

What is the meaning of Triage in Cybersec world?

Can someone be penalized for an "unlawful" act if no penalty is specified?

What does "fetching by region is not available for SAM files" means?



Windows 10 pip not installing Python2 packages while Python 3.6 is installed



The 2019 Stack Overflow Developer Survey Results Are InHow do I install PyMOL on 64 bit Windows 7 SP1?Cannot get pip working on Python 2.6 in Fedora 22 VirtualboxHow to install python packages in python3.6 folder?rpm overrides pip installbs4 python module issuePython says is 216 bitsIssue with executing a python install.py in my virtual environmentgstreamer functionality in Python?Getting the error “DLL load failed: The specified module could not be found.” while trying to import tensorflow for Windows in Anaconda using PyCharmUnable to install pip on windows 7- python 3.7





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I have Python 3.6 installed but need Python 2.7 for a project. I cannot install packages for Python 2.7 though. Let's use numpy as an example:



C:Python27python.exe -m pip install numpy


will tell me that requirement is already met in 3.6.



C:Python27Scriptspip2.7.exe install numpy


will tell me that requirement is already met in 3.6.



When I try to import numpy it will give me an error.



I tried adding Python 2.7 to my path above Python 3.6 and I still get the error.



Please help, this has been extraordinarily frustrating.



Thank you.










share|improve this question









New contributor




Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    1















    I have Python 3.6 installed but need Python 2.7 for a project. I cannot install packages for Python 2.7 though. Let's use numpy as an example:



    C:Python27python.exe -m pip install numpy


    will tell me that requirement is already met in 3.6.



    C:Python27Scriptspip2.7.exe install numpy


    will tell me that requirement is already met in 3.6.



    When I try to import numpy it will give me an error.



    I tried adding Python 2.7 to my path above Python 3.6 and I still get the error.



    Please help, this has been extraordinarily frustrating.



    Thank you.










    share|improve this question









    New contributor




    Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1








      I have Python 3.6 installed but need Python 2.7 for a project. I cannot install packages for Python 2.7 though. Let's use numpy as an example:



      C:Python27python.exe -m pip install numpy


      will tell me that requirement is already met in 3.6.



      C:Python27Scriptspip2.7.exe install numpy


      will tell me that requirement is already met in 3.6.



      When I try to import numpy it will give me an error.



      I tried adding Python 2.7 to my path above Python 3.6 and I still get the error.



      Please help, this has been extraordinarily frustrating.



      Thank you.










      share|improve this question









      New contributor




      Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have Python 3.6 installed but need Python 2.7 for a project. I cannot install packages for Python 2.7 though. Let's use numpy as an example:



      C:Python27python.exe -m pip install numpy


      will tell me that requirement is already met in 3.6.



      C:Python27Scriptspip2.7.exe install numpy


      will tell me that requirement is already met in 3.6.



      When I try to import numpy it will give me an error.



      I tried adding Python 2.7 to my path above Python 3.6 and I still get the error.



      Please help, this has been extraordinarily frustrating.



      Thank you.







      windows windows-10 installation python






      share|improve this question









      New contributor




      Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited yesterday









      Anaksunaman

      5,72321423




      5,72321423






      New contributor




      Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked yesterday









      AdamAdam

      82




      82




      New contributor




      Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          For reference, running C:Python27python.exe -m pip install numpy and python -m install numpy (for Python 3.6, outside C:Python27) yielded no errors for me.



          Troubleshooting



          You may wish to consider one or more of the following.



          Uninstall numpy



          Uninstall numpy (or any requirements that are already met, assuming you do not need them) in Python 3.6 (ex. python -m pip uninstall numpy) and then install e.g. numpy again in Python 2.7.



          Use A Virtual Environment



          Assuming that your Python 2.7 installation will allow it:




          • Run e.g. C:Python27python.exe -m pip install virtualenv to download the virtualenv virtual environment package.


          • Run C:Python27python.exe -m virtualenv C:pathtovirtualenv to create an isolated 2.7 environment in which you can install numpy (or any other necessary packages) for your project.


          • Note that you will need to "activate" (and perhaps "deactivate") this environment from the command line with the activate.bat (or deactivate.bat) batch file(s) located in e.g. C:pathtovirtualenvScripts.



          Check pip Paths



          Running e.g. C:Python27python.exe -m pip list and ex. python -m pip list (again, outside C:Python27) should output different lists of installed packages (one for 2.7 and one for 3.6, respectively).



          If they do not, you may wish look for any duplicate references to e.g. C:PythonVersionScripts (where pip.exe resides) in your PATHPath (UserSystem) variables and remove them. In short, you should only have a single reference to e.g. C:Python36Scripts (i.e. no C:Python27Scripts).



          Reinstall Python 2.7 and Python 3.6




          • Completely uninstall Python 2.7 and Python 3.6, taking note of any packages you may wish to reinstall later.


          • Install Python 2.7. Do not choose any option to add Python 2.7 to your path variable(s).


          • Install Python 3.6. Add it to your path variable(s). You do not need to select the option to add pip to your path variables if you are using e.g. python -m pip (this is only necessary if you want to use the pip installation for Python 3.6 directly as pip [options] from the command line)







          share|improve this answer
























          • Thank you. This was helpful. I ended up uninstalling all python versions, made sure to delete all files that I could find in my system (for example, completely deleted C:Python27) and did a fresh install of everything installing packages when import errors arose, also leveraging virtualenvs as you suggested

            – Adam
            19 hours ago











          • You're welcome. I am glad it was helpful.

            – Anaksunaman
            17 hours ago












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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
          });


          }
          });






          Adam is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1423140%2fwindows-10-pip-not-installing-python2-packages-while-python-3-6-is-installed%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









          0














          For reference, running C:Python27python.exe -m pip install numpy and python -m install numpy (for Python 3.6, outside C:Python27) yielded no errors for me.



          Troubleshooting



          You may wish to consider one or more of the following.



          Uninstall numpy



          Uninstall numpy (or any requirements that are already met, assuming you do not need them) in Python 3.6 (ex. python -m pip uninstall numpy) and then install e.g. numpy again in Python 2.7.



          Use A Virtual Environment



          Assuming that your Python 2.7 installation will allow it:




          • Run e.g. C:Python27python.exe -m pip install virtualenv to download the virtualenv virtual environment package.


          • Run C:Python27python.exe -m virtualenv C:pathtovirtualenv to create an isolated 2.7 environment in which you can install numpy (or any other necessary packages) for your project.


          • Note that you will need to "activate" (and perhaps "deactivate") this environment from the command line with the activate.bat (or deactivate.bat) batch file(s) located in e.g. C:pathtovirtualenvScripts.



          Check pip Paths



          Running e.g. C:Python27python.exe -m pip list and ex. python -m pip list (again, outside C:Python27) should output different lists of installed packages (one for 2.7 and one for 3.6, respectively).



          If they do not, you may wish look for any duplicate references to e.g. C:PythonVersionScripts (where pip.exe resides) in your PATHPath (UserSystem) variables and remove them. In short, you should only have a single reference to e.g. C:Python36Scripts (i.e. no C:Python27Scripts).



          Reinstall Python 2.7 and Python 3.6




          • Completely uninstall Python 2.7 and Python 3.6, taking note of any packages you may wish to reinstall later.


          • Install Python 2.7. Do not choose any option to add Python 2.7 to your path variable(s).


          • Install Python 3.6. Add it to your path variable(s). You do not need to select the option to add pip to your path variables if you are using e.g. python -m pip (this is only necessary if you want to use the pip installation for Python 3.6 directly as pip [options] from the command line)







          share|improve this answer
























          • Thank you. This was helpful. I ended up uninstalling all python versions, made sure to delete all files that I could find in my system (for example, completely deleted C:Python27) and did a fresh install of everything installing packages when import errors arose, also leveraging virtualenvs as you suggested

            – Adam
            19 hours ago











          • You're welcome. I am glad it was helpful.

            – Anaksunaman
            17 hours ago
















          0














          For reference, running C:Python27python.exe -m pip install numpy and python -m install numpy (for Python 3.6, outside C:Python27) yielded no errors for me.



          Troubleshooting



          You may wish to consider one or more of the following.



          Uninstall numpy



          Uninstall numpy (or any requirements that are already met, assuming you do not need them) in Python 3.6 (ex. python -m pip uninstall numpy) and then install e.g. numpy again in Python 2.7.



          Use A Virtual Environment



          Assuming that your Python 2.7 installation will allow it:




          • Run e.g. C:Python27python.exe -m pip install virtualenv to download the virtualenv virtual environment package.


          • Run C:Python27python.exe -m virtualenv C:pathtovirtualenv to create an isolated 2.7 environment in which you can install numpy (or any other necessary packages) for your project.


          • Note that you will need to "activate" (and perhaps "deactivate") this environment from the command line with the activate.bat (or deactivate.bat) batch file(s) located in e.g. C:pathtovirtualenvScripts.



          Check pip Paths



          Running e.g. C:Python27python.exe -m pip list and ex. python -m pip list (again, outside C:Python27) should output different lists of installed packages (one for 2.7 and one for 3.6, respectively).



          If they do not, you may wish look for any duplicate references to e.g. C:PythonVersionScripts (where pip.exe resides) in your PATHPath (UserSystem) variables and remove them. In short, you should only have a single reference to e.g. C:Python36Scripts (i.e. no C:Python27Scripts).



          Reinstall Python 2.7 and Python 3.6




          • Completely uninstall Python 2.7 and Python 3.6, taking note of any packages you may wish to reinstall later.


          • Install Python 2.7. Do not choose any option to add Python 2.7 to your path variable(s).


          • Install Python 3.6. Add it to your path variable(s). You do not need to select the option to add pip to your path variables if you are using e.g. python -m pip (this is only necessary if you want to use the pip installation for Python 3.6 directly as pip [options] from the command line)







          share|improve this answer
























          • Thank you. This was helpful. I ended up uninstalling all python versions, made sure to delete all files that I could find in my system (for example, completely deleted C:Python27) and did a fresh install of everything installing packages when import errors arose, also leveraging virtualenvs as you suggested

            – Adam
            19 hours ago











          • You're welcome. I am glad it was helpful.

            – Anaksunaman
            17 hours ago














          0












          0








          0







          For reference, running C:Python27python.exe -m pip install numpy and python -m install numpy (for Python 3.6, outside C:Python27) yielded no errors for me.



          Troubleshooting



          You may wish to consider one or more of the following.



          Uninstall numpy



          Uninstall numpy (or any requirements that are already met, assuming you do not need them) in Python 3.6 (ex. python -m pip uninstall numpy) and then install e.g. numpy again in Python 2.7.



          Use A Virtual Environment



          Assuming that your Python 2.7 installation will allow it:




          • Run e.g. C:Python27python.exe -m pip install virtualenv to download the virtualenv virtual environment package.


          • Run C:Python27python.exe -m virtualenv C:pathtovirtualenv to create an isolated 2.7 environment in which you can install numpy (or any other necessary packages) for your project.


          • Note that you will need to "activate" (and perhaps "deactivate") this environment from the command line with the activate.bat (or deactivate.bat) batch file(s) located in e.g. C:pathtovirtualenvScripts.



          Check pip Paths



          Running e.g. C:Python27python.exe -m pip list and ex. python -m pip list (again, outside C:Python27) should output different lists of installed packages (one for 2.7 and one for 3.6, respectively).



          If they do not, you may wish look for any duplicate references to e.g. C:PythonVersionScripts (where pip.exe resides) in your PATHPath (UserSystem) variables and remove them. In short, you should only have a single reference to e.g. C:Python36Scripts (i.e. no C:Python27Scripts).



          Reinstall Python 2.7 and Python 3.6




          • Completely uninstall Python 2.7 and Python 3.6, taking note of any packages you may wish to reinstall later.


          • Install Python 2.7. Do not choose any option to add Python 2.7 to your path variable(s).


          • Install Python 3.6. Add it to your path variable(s). You do not need to select the option to add pip to your path variables if you are using e.g. python -m pip (this is only necessary if you want to use the pip installation for Python 3.6 directly as pip [options] from the command line)







          share|improve this answer













          For reference, running C:Python27python.exe -m pip install numpy and python -m install numpy (for Python 3.6, outside C:Python27) yielded no errors for me.



          Troubleshooting



          You may wish to consider one or more of the following.



          Uninstall numpy



          Uninstall numpy (or any requirements that are already met, assuming you do not need them) in Python 3.6 (ex. python -m pip uninstall numpy) and then install e.g. numpy again in Python 2.7.



          Use A Virtual Environment



          Assuming that your Python 2.7 installation will allow it:




          • Run e.g. C:Python27python.exe -m pip install virtualenv to download the virtualenv virtual environment package.


          • Run C:Python27python.exe -m virtualenv C:pathtovirtualenv to create an isolated 2.7 environment in which you can install numpy (or any other necessary packages) for your project.


          • Note that you will need to "activate" (and perhaps "deactivate") this environment from the command line with the activate.bat (or deactivate.bat) batch file(s) located in e.g. C:pathtovirtualenvScripts.



          Check pip Paths



          Running e.g. C:Python27python.exe -m pip list and ex. python -m pip list (again, outside C:Python27) should output different lists of installed packages (one for 2.7 and one for 3.6, respectively).



          If they do not, you may wish look for any duplicate references to e.g. C:PythonVersionScripts (where pip.exe resides) in your PATHPath (UserSystem) variables and remove them. In short, you should only have a single reference to e.g. C:Python36Scripts (i.e. no C:Python27Scripts).



          Reinstall Python 2.7 and Python 3.6




          • Completely uninstall Python 2.7 and Python 3.6, taking note of any packages you may wish to reinstall later.


          • Install Python 2.7. Do not choose any option to add Python 2.7 to your path variable(s).


          • Install Python 3.6. Add it to your path variable(s). You do not need to select the option to add pip to your path variables if you are using e.g. python -m pip (this is only necessary if you want to use the pip installation for Python 3.6 directly as pip [options] from the command line)








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          AnaksunamanAnaksunaman

          5,72321423




          5,72321423













          • Thank you. This was helpful. I ended up uninstalling all python versions, made sure to delete all files that I could find in my system (for example, completely deleted C:Python27) and did a fresh install of everything installing packages when import errors arose, also leveraging virtualenvs as you suggested

            – Adam
            19 hours ago











          • You're welcome. I am glad it was helpful.

            – Anaksunaman
            17 hours ago



















          • Thank you. This was helpful. I ended up uninstalling all python versions, made sure to delete all files that I could find in my system (for example, completely deleted C:Python27) and did a fresh install of everything installing packages when import errors arose, also leveraging virtualenvs as you suggested

            – Adam
            19 hours ago











          • You're welcome. I am glad it was helpful.

            – Anaksunaman
            17 hours ago

















          Thank you. This was helpful. I ended up uninstalling all python versions, made sure to delete all files that I could find in my system (for example, completely deleted C:Python27) and did a fresh install of everything installing packages when import errors arose, also leveraging virtualenvs as you suggested

          – Adam
          19 hours ago





          Thank you. This was helpful. I ended up uninstalling all python versions, made sure to delete all files that I could find in my system (for example, completely deleted C:Python27) and did a fresh install of everything installing packages when import errors arose, also leveraging virtualenvs as you suggested

          – Adam
          19 hours ago













          You're welcome. I am glad it was helpful.

          – Anaksunaman
          17 hours ago





          You're welcome. I am glad it was helpful.

          – Anaksunaman
          17 hours ago










          Adam is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Adam is a new contributor. Be nice, and check out our Code of Conduct.













          Adam is a new contributor. Be nice, and check out our Code of Conduct.












          Adam is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1423140%2fwindows-10-pip-not-installing-python2-packages-while-python-3-6-is-installed%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

          Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

          Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

          Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...