pip says it is out of date but updating says it is the latest version!

The name of the pictureThe name of the pictureThe name of the pictureClash 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






share|improve this question

















  • 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










  • @Kusalananda ok what information can I add to help aid this?
    – williamsdb
    Jun 13 at 9:58














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






share|improve this question

















  • 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










  • @Kusalananda ok what information can I add to help aid this?
    – williamsdb
    Jun 13 at 9:58












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






share|improve this question













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








share|improve this question












share|improve this question




share|improve this question








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 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












  • 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










  • @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










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





share|improve this answer





















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    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






























    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





    share|improve this answer

























      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





      share|improve this answer























        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





        share|improve this answer













        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






        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 13 at 13:09









        williamsdb

        13016




        13016






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?