pip says it is out of date but updating says it is the latest version!
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
If I try and do the following:
pip --version
I get this:
Traceback (most recent call last):
File "/usr/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3049, in <module>
@_call_aside
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3033, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3062, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 660, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 858, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==9.0.3' distribution was not found and is required by the application
Which looks as if pip is out of date so I try and do this:
python -m pip install --upgrade pip
I get this:
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages (10.0.1)
So I am confused! How can I get pip to the version pip seems to need to require?
More information on installation, whereis tells me that pip is available here:
pip: /usr/bin/pip /usr/local/bin/pip /usr/local/bin/pip2.7
and python:
python: /usr/bin/python2.6-config /usr/bin/python2.6 /usr/bin/python2.7-config /usr/bin/python2.7 /usr/bin/python /usr/lib/python2.6 /usr/lib/python2.7 /usr/lib64/python2.6 /usr/lib64/python2.7 /usr/local/lib/python2.6 /usr/local/lib/python2.7 /usr/include/python2.6 /usr/include/python2.7 /usr/share/man/man1/python.1.gz
python pip amazon-linux
add a comment |Â
up vote
0
down vote
favorite
If I try and do the following:
pip --version
I get this:
Traceback (most recent call last):
File "/usr/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3049, in <module>
@_call_aside
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3033, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3062, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 660, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 858, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==9.0.3' distribution was not found and is required by the application
Which looks as if pip is out of date so I try and do this:
python -m pip install --upgrade pip
I get this:
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages (10.0.1)
So I am confused! How can I get pip to the version pip seems to need to require?
More information on installation, whereis tells me that pip is available here:
pip: /usr/bin/pip /usr/local/bin/pip /usr/local/bin/pip2.7
and python:
python: /usr/bin/python2.6-config /usr/bin/python2.6 /usr/bin/python2.7-config /usr/bin/python2.7 /usr/bin/python /usr/lib/python2.6 /usr/lib/python2.7 /usr/lib64/python2.6 /usr/lib64/python2.7 /usr/local/lib/python2.6 /usr/local/lib/python2.7 /usr/include/python2.6 /usr/include/python2.7 /usr/share/man/man1/python.1.gz
python pip amazon-linux
1
You have two Python installations, one in/usr
and one in/usr/local
. Without knowing more about your Python setup and what yourPATH
andPYTHONHOME
/PYTHONPATH
variables are, it's difficult to know how to answer this properly.
â Kusalananda
Jun 13 at 9:51
@Kusalananda ok what information can I add to help aid this?
â williamsdb
Jun 13 at 9:58
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
If I try and do the following:
pip --version
I get this:
Traceback (most recent call last):
File "/usr/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3049, in <module>
@_call_aside
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3033, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3062, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 660, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 858, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==9.0.3' distribution was not found and is required by the application
Which looks as if pip is out of date so I try and do this:
python -m pip install --upgrade pip
I get this:
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages (10.0.1)
So I am confused! How can I get pip to the version pip seems to need to require?
More information on installation, whereis tells me that pip is available here:
pip: /usr/bin/pip /usr/local/bin/pip /usr/local/bin/pip2.7
and python:
python: /usr/bin/python2.6-config /usr/bin/python2.6 /usr/bin/python2.7-config /usr/bin/python2.7 /usr/bin/python /usr/lib/python2.6 /usr/lib/python2.7 /usr/lib64/python2.6 /usr/lib64/python2.7 /usr/local/lib/python2.6 /usr/local/lib/python2.7 /usr/include/python2.6 /usr/include/python2.7 /usr/share/man/man1/python.1.gz
python pip amazon-linux
If I try and do the following:
pip --version
I get this:
Traceback (most recent call last):
File "/usr/bin/pip", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3049, in <module>
@_call_aside
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3033, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3062, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 660, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 858, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pip==9.0.3' distribution was not found and is required by the application
Which looks as if pip is out of date so I try and do this:
python -m pip install --upgrade pip
I get this:
Requirement already up-to-date: pip in /usr/local/lib/python2.7/site-packages (10.0.1)
So I am confused! How can I get pip to the version pip seems to need to require?
More information on installation, whereis tells me that pip is available here:
pip: /usr/bin/pip /usr/local/bin/pip /usr/local/bin/pip2.7
and python:
python: /usr/bin/python2.6-config /usr/bin/python2.6 /usr/bin/python2.7-config /usr/bin/python2.7 /usr/bin/python /usr/lib/python2.6 /usr/lib/python2.7 /usr/lib64/python2.6 /usr/lib64/python2.7 /usr/local/lib/python2.6 /usr/local/lib/python2.7 /usr/include/python2.6 /usr/include/python2.7 /usr/share/man/man1/python.1.gz
python pip amazon-linux
edited Jun 13 at 10:00
asked Jun 13 at 9:44
williamsdb
13016
13016
1
You have two Python installations, one in/usr
and one in/usr/local
. Without knowing more about your Python setup and what yourPATH
andPYTHONHOME
/PYTHONPATH
variables are, it's difficult to know how to answer this properly.
â Kusalananda
Jun 13 at 9:51
@Kusalananda ok what information can I add to help aid this?
â williamsdb
Jun 13 at 9:58
add a comment |Â
1
You have two Python installations, one in/usr
and one in/usr/local
. Without knowing more about your Python setup and what yourPATH
andPYTHONHOME
/PYTHONPATH
variables are, it's difficult to know how to answer this properly.
â Kusalananda
Jun 13 at 9:51
@Kusalananda ok what information can I add to help aid this?
â williamsdb
Jun 13 at 9:58
1
1
You have two Python installations, one in
/usr
and one in /usr/local
. Without knowing more about your Python setup and what your PATH
and PYTHONHOME
/PYTHONPATH
variables are, it's difficult to know how to answer this properly.â Kusalananda
Jun 13 at 9:51
You have two Python installations, one in
/usr
and one in /usr/local
. Without knowing more about your Python setup and what your PATH
and PYTHONHOME
/PYTHONPATH
variables are, it's difficult to know how to answer this properly.â Kusalananda
Jun 13 at 9:51
@Kusalananda ok what information can I add to help aid this?
â williamsdb
Jun 13 at 9:58
@Kusalananda ok what information can I add to help aid this?
â williamsdb
Jun 13 at 9:58
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
As @Kusalananda said there were multiple versions of pip in /usr/bin and /usr/local/bin. I solved this by creating a symbolic link from /usr/bin to the version in /usr/local/bin which is the latest version:
sudo ln -s /usr/local/bin/pip /usr/bin/pip
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
As @Kusalananda said there were multiple versions of pip in /usr/bin and /usr/local/bin. I solved this by creating a symbolic link from /usr/bin to the version in /usr/local/bin which is the latest version:
sudo ln -s /usr/local/bin/pip /usr/bin/pip
add a comment |Â
up vote
0
down vote
As @Kusalananda said there were multiple versions of pip in /usr/bin and /usr/local/bin. I solved this by creating a symbolic link from /usr/bin to the version in /usr/local/bin which is the latest version:
sudo ln -s /usr/local/bin/pip /usr/bin/pip
add a comment |Â
up vote
0
down vote
up vote
0
down vote
As @Kusalananda said there were multiple versions of pip in /usr/bin and /usr/local/bin. I solved this by creating a symbolic link from /usr/bin to the version in /usr/local/bin which is the latest version:
sudo ln -s /usr/local/bin/pip /usr/bin/pip
As @Kusalananda said there were multiple versions of pip in /usr/bin and /usr/local/bin. I solved this by creating a symbolic link from /usr/bin to the version in /usr/local/bin which is the latest version:
sudo ln -s /usr/local/bin/pip /usr/bin/pip
answered Jun 13 at 13:09
williamsdb
13016
13016
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449486%2fpip-says-it-is-out-of-date-but-updating-says-it-is-the-latest-version%23new-answer', 'question_page');
);
Post as a guest
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
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
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
1
You have two Python installations, one in
/usr
and one in/usr/local
. Without knowing more about your Python setup and what yourPATH
andPYTHONHOME
/PYTHONPATH
variables are, it's difficult to know how to answer this properly.â Kusalananda
Jun 13 at 9:51
@Kusalananda ok what information can I add to help aid this?
â williamsdb
Jun 13 at 9:58