pip not working after installing another python version
0
votes
1
answer
5469
views
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
from pip._internal import main
File "/usr/lib/python2.6/site-packages/pip/_internal/__init__.py", line 19, in
from pip._vendor.urllib3.exceptions import DependencyWarning
File "/usr/lib/python2.6/site-packages/pip/_vendor/urllib3/__init__.py", line 8, in
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.
Asked by Sumedh Junghare
(109 rep)
Mar 22, 2019, 01:10 PM
Last activity: Jun 14, 2025, 02:03 PM
Last activity: Jun 14, 2025, 02:03 PM