pip not working after installing another python version2019 Community Moderator ElectionHow can I have more than one possibility in a script's shebang line?Python not recognizing LD_LIBRARY_PATH?untar specific file to present date in linuxlxml with custom install location for libxml2/libxslt doesn't find correct locationCapstone for Python not workingHow to install cctrlapp on debian?Properly configure python 2.7 after installation, preferably replacing existing python 2.6certbot and awscli require different versions of botocoreOS X - Why is python not properly sourced in `which python`?… and is more broken in the system-level python?import error fabric.api
Did arcade monitors have same pixel aspect ratio as TV sets?
How to indicate a cut out for a product window
The IT department bottlenecks progress. How should I handle this?
What does "Scientists rise up against statistical significance" mean? (Comment in Nature)
Problem with TransformedDistribution
Biological Blimps: Propulsion
Added a new user on Ubuntu, set password not working?
Creepy dinosaur pc game identification
height map for normal input sharp edges
It grows, but water kills it
Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?
Is the U.S. Code copyrighted by the Government?
Store Credit Card Information in Password Manager?
Are paving bricks differently sized for sand bedding vs mortar bedding?
What percentage of fillings performed today are done with mercury amalgam?
Non-trope happy ending?
What is the evidence for the "tyranny of the majority problem" in a direct democracy context?
What should you do if you miss a job interview (deliberately)?
What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?
2.8 Why are collections grayed out? How can I open them?
How did Rebekah know that Esau was planning to kill his brother in Genesis 27:42?
A social experiment. What is the worst that can happen?
How much character growth crosses the line into breaking the character
Why does the Sun have different day lengths, but not the gas giants?
pip not working after installing another python version
2019 Community Moderator ElectionHow can I have more than one possibility in a script's shebang line?Python not recognizing LD_LIBRARY_PATH?untar specific file to present date in linuxlxml with custom install location for libxml2/libxslt doesn't find correct locationCapstone for Python not workingHow to install cctrlapp on debian?Properly configure python 2.7 after installation, preferably replacing existing python 2.6certbot and awscli require different versions of botocoreOS X - Why is python not properly sourced in `which python`?… and is more broken in the system-level python?import error fabric.api
My CentOS 6.5 machine already had Python 2.6 installed in it. Now I just installed Python 2.7. But now, pip is not working. Whenever I run any pip command, it shows following error-
File "/usr/bin/pip", line 7, in <module>
from pip._internal import main
File "/usr/lib/python2.6/site-packages/pip/_internal/__init__.py", line 19, in <module>
from pip._vendor.urllib3.exceptions import DependencyWarning
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 92
_blocking_errnos = errno.EAGAIN, errno.EWOULDBLOCK
^
SyntaxError: invalid syntax
I am not understanding what the actual problem is.
centos python pip
New contributor
Sumedh Junghare 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 |
My CentOS 6.5 machine already had Python 2.6 installed in it. Now I just installed Python 2.7. But now, pip is not working. Whenever I run any pip command, it shows following error-
File "/usr/bin/pip", line 7, in <module>
from pip._internal import main
File "/usr/lib/python2.6/site-packages/pip/_internal/__init__.py", line 19, in <module>
from pip._vendor.urllib3.exceptions import DependencyWarning
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 92
_blocking_errnos = errno.EAGAIN, errno.EWOULDBLOCK
^
SyntaxError: invalid syntax
I am not understanding what the actual problem is.
centos python pip
New contributor
Sumedh Junghare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Whichpipare you using? You need to specify the version, ie.pip3.7. Also, why are you using 2.6? Or even 2.7?
– slybloty
yesterday
Funny thing: even runningpip --versioncommand returns same error. And I know it's embarrassing to use older Python versions, but you know I have to, and it's not in my hands :D
– Sumedh Junghare
yesterday
which pipshould tell you what it's trying to do. It appears to me that it's attempting to run2.7using2.6code. Also check your aliases. On top of that, my recommendation is to move away from 2.6.
– slybloty
yesterday
add a comment |
My CentOS 6.5 machine already had Python 2.6 installed in it. Now I just installed Python 2.7. But now, pip is not working. Whenever I run any pip command, it shows following error-
File "/usr/bin/pip", line 7, in <module>
from pip._internal import main
File "/usr/lib/python2.6/site-packages/pip/_internal/__init__.py", line 19, in <module>
from pip._vendor.urllib3.exceptions import DependencyWarning
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 92
_blocking_errnos = errno.EAGAIN, errno.EWOULDBLOCK
^
SyntaxError: invalid syntax
I am not understanding what the actual problem is.
centos python pip
New contributor
Sumedh Junghare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
My CentOS 6.5 machine already had Python 2.6 installed in it. Now I just installed Python 2.7. But now, pip is not working. Whenever I run any pip command, it shows following error-
File "/usr/bin/pip", line 7, in <module>
from pip._internal import main
File "/usr/lib/python2.6/site-packages/pip/_internal/__init__.py", line 19, in <module>
from pip._vendor.urllib3.exceptions import DependencyWarning
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 92
_blocking_errnos = errno.EAGAIN, errno.EWOULDBLOCK
^
SyntaxError: invalid syntax
I am not understanding what the actual problem is.
centos python pip
centos python pip
New contributor
Sumedh Junghare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Sumedh Junghare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Sumedh Junghare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked yesterday
Sumedh JunghareSumedh Junghare
42
42
New contributor
Sumedh Junghare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Sumedh Junghare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Sumedh Junghare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
Whichpipare you using? You need to specify the version, ie.pip3.7. Also, why are you using 2.6? Or even 2.7?
– slybloty
yesterday
Funny thing: even runningpip --versioncommand returns same error. And I know it's embarrassing to use older Python versions, but you know I have to, and it's not in my hands :D
– Sumedh Junghare
yesterday
which pipshould tell you what it's trying to do. It appears to me that it's attempting to run2.7using2.6code. Also check your aliases. On top of that, my recommendation is to move away from 2.6.
– slybloty
yesterday
add a comment |
1
Whichpipare you using? You need to specify the version, ie.pip3.7. Also, why are you using 2.6? Or even 2.7?
– slybloty
yesterday
Funny thing: even runningpip --versioncommand returns same error. And I know it's embarrassing to use older Python versions, but you know I have to, and it's not in my hands :D
– Sumedh Junghare
yesterday
which pipshould tell you what it's trying to do. It appears to me that it's attempting to run2.7using2.6code. Also check your aliases. On top of that, my recommendation is to move away from 2.6.
– slybloty
yesterday
1
1
Which
pip are you using? You need to specify the version, ie. pip3.7. Also, why are you using 2.6? Or even 2.7?– slybloty
yesterday
Which
pip are you using? You need to specify the version, ie. pip3.7. Also, why are you using 2.6? Or even 2.7?– slybloty
yesterday
Funny thing: even running
pip --version command returns same error. And I know it's embarrassing to use older Python versions, but you know I have to, and it's not in my hands :D– Sumedh Junghare
yesterday
Funny thing: even running
pip --version command returns same error. And I know it's embarrassing to use older Python versions, but you know I have to, and it's not in my hands :D– Sumedh Junghare
yesterday
which pip should tell you what it's trying to do. It appears to me that it's attempting to run 2.7 using 2.6 code. Also check your aliases. On top of that, my recommendation is to move away from 2.6.– slybloty
yesterday
which pip should tell you what it's trying to do. It appears to me that it's attempting to run 2.7 using 2.6 code. Also check your aliases. On top of that, my recommendation is to move away from 2.6.– slybloty
yesterday
add a comment |
0
active
oldest
votes
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);
);
Sumedh Junghare 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%2funix.stackexchange.com%2fquestions%2f507985%2fpip-not-working-after-installing-another-python-version%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
Sumedh Junghare is a new contributor. Be nice, and check out our Code of Conduct.
Sumedh Junghare is a new contributor. Be nice, and check out our Code of Conduct.
Sumedh Junghare is a new contributor. Be nice, and check out our Code of Conduct.
Sumedh Junghare is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f507985%2fpip-not-working-after-installing-another-python-version%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
1
Which
pipare you using? You need to specify the version, ie.pip3.7. Also, why are you using 2.6? Or even 2.7?– slybloty
yesterday
Funny thing: even running
pip --versioncommand returns same error. And I know it's embarrassing to use older Python versions, but you know I have to, and it's not in my hands :D– Sumedh Junghare
yesterday
which pipshould tell you what it's trying to do. It appears to me that it's attempting to run2.7using2.6code. Also check your aliases. On top of that, my recommendation is to move away from 2.6.– slybloty
yesterday