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;
}
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
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.
add a comment |
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
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.
add a comment |
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
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
windows windows-10 installation python
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.
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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 virtualenvto download thevirtualenvvirtual environment package.Run
C:Python27python.exe -m virtualenv C:pathtovirtualenvto create an isolated 2.7 environment in which you can installnumpy(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(ordeactivate.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
pipto your path variables if you are using e.g.python -m pip(this is only necessary if you want to use thepipinstallation for Python 3.6 directly aspip [options]from the command line)
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 virtualenvto download thevirtualenvvirtual environment package.Run
C:Python27python.exe -m virtualenv C:pathtovirtualenvto create an isolated 2.7 environment in which you can installnumpy(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(ordeactivate.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
pipto your path variables if you are using e.g.python -m pip(this is only necessary if you want to use thepipinstallation for Python 3.6 directly aspip [options]from the command line)
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
add a comment |
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 virtualenvto download thevirtualenvvirtual environment package.Run
C:Python27python.exe -m virtualenv C:pathtovirtualenvto create an isolated 2.7 environment in which you can installnumpy(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(ordeactivate.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
pipto your path variables if you are using e.g.python -m pip(this is only necessary if you want to use thepipinstallation for Python 3.6 directly aspip [options]from the command line)
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
add a comment |
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 virtualenvto download thevirtualenvvirtual environment package.Run
C:Python27python.exe -m virtualenv C:pathtovirtualenvto create an isolated 2.7 environment in which you can installnumpy(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(ordeactivate.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
pipto your path variables if you are using e.g.python -m pip(this is only necessary if you want to use thepipinstallation for Python 3.6 directly aspip [options]from the command line)
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 virtualenvto download thevirtualenvvirtual environment package.Run
C:Python27python.exe -m virtualenv C:pathtovirtualenvto create an isolated 2.7 environment in which you can installnumpy(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(ordeactivate.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
pipto your path variables if you are using e.g.python -m pip(this is only necessary if you want to use thepipinstallation for Python 3.6 directly aspip [options]from the command line)
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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