pip3 is looking for a wrong path when there are two pythons installed

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















I have puppy linux installed on a 32 bit machine.
I installed python 3.5 and Pip3 libraries via puppy package manager.
When I run pip3, I receive this error:



root# pip3
bash: /usr/bin/pip3: /usr/bin/python3: bad interpreter: No such file or directory


Any idea how can I fix this issue? Seems like pip3 is looking for a wrong path.



More info:



  • I don't have pip installed.

  • I have two different versions of python installed where the default one is Python 2.6.4


  • Python path



    root# which python



    /usr/bin/python




What I tried:




  • according to this answer I tried



    root# head -n1 /usr/local/bin/pip
    head: cannot open '/usr/local/bin/pip' for reading: No such file or directory



however as shown above, it ends in an error. Moreover there is no /usr/local/opt directory




Conclusion:



Seems like pip3 is looking for /usr/bin/python3 while python is installed in /usr/bin/python3.5










share|improve this question
























  • The real fix is of course to complain to the maintainer of the Python3 package (as opposed to complaining on Unix & Linux), but in the mean time adding a symlink python3 -> python3.5 will make your life easier.

    – Satō Katsura
    Aug 4 '16 at 12:17












  • I ran ln -s python3 -> python3.5 with success. but still I get the same error when running pip3. Strange point is when I run python3 the command is not known, however python3.5 is running. Did I make any mistake?

    – Woeitg
    Aug 4 '16 at 12:37







  • 2





    To create the symlink I'm talking about: cd /usr/bin && ln -s python3.5 python3. You might also need to restart the current terminal after that ($PATH is sometimes cached etc.).

    – Satō Katsura
    Aug 4 '16 at 12:41











  • tnx,,now it is working. If you are interested, answer this question with what is written in comment and I will accept it

    – Woeitg
    Aug 4 '16 at 12:50






  • 1





    It's a workaround for a broken package, not a solution. shrug.

    – Satō Katsura
    Aug 4 '16 at 12:51















0















I have puppy linux installed on a 32 bit machine.
I installed python 3.5 and Pip3 libraries via puppy package manager.
When I run pip3, I receive this error:



root# pip3
bash: /usr/bin/pip3: /usr/bin/python3: bad interpreter: No such file or directory


Any idea how can I fix this issue? Seems like pip3 is looking for a wrong path.



More info:



  • I don't have pip installed.

  • I have two different versions of python installed where the default one is Python 2.6.4


  • Python path



    root# which python



    /usr/bin/python




What I tried:




  • according to this answer I tried



    root# head -n1 /usr/local/bin/pip
    head: cannot open '/usr/local/bin/pip' for reading: No such file or directory



however as shown above, it ends in an error. Moreover there is no /usr/local/opt directory




Conclusion:



Seems like pip3 is looking for /usr/bin/python3 while python is installed in /usr/bin/python3.5










share|improve this question
























  • The real fix is of course to complain to the maintainer of the Python3 package (as opposed to complaining on Unix & Linux), but in the mean time adding a symlink python3 -> python3.5 will make your life easier.

    – Satō Katsura
    Aug 4 '16 at 12:17












  • I ran ln -s python3 -> python3.5 with success. but still I get the same error when running pip3. Strange point is when I run python3 the command is not known, however python3.5 is running. Did I make any mistake?

    – Woeitg
    Aug 4 '16 at 12:37







  • 2





    To create the symlink I'm talking about: cd /usr/bin && ln -s python3.5 python3. You might also need to restart the current terminal after that ($PATH is sometimes cached etc.).

    – Satō Katsura
    Aug 4 '16 at 12:41











  • tnx,,now it is working. If you are interested, answer this question with what is written in comment and I will accept it

    – Woeitg
    Aug 4 '16 at 12:50






  • 1





    It's a workaround for a broken package, not a solution. shrug.

    – Satō Katsura
    Aug 4 '16 at 12:51













0












0








0








I have puppy linux installed on a 32 bit machine.
I installed python 3.5 and Pip3 libraries via puppy package manager.
When I run pip3, I receive this error:



root# pip3
bash: /usr/bin/pip3: /usr/bin/python3: bad interpreter: No such file or directory


Any idea how can I fix this issue? Seems like pip3 is looking for a wrong path.



More info:



  • I don't have pip installed.

  • I have two different versions of python installed where the default one is Python 2.6.4


  • Python path



    root# which python



    /usr/bin/python




What I tried:




  • according to this answer I tried



    root# head -n1 /usr/local/bin/pip
    head: cannot open '/usr/local/bin/pip' for reading: No such file or directory



however as shown above, it ends in an error. Moreover there is no /usr/local/opt directory




Conclusion:



Seems like pip3 is looking for /usr/bin/python3 while python is installed in /usr/bin/python3.5










share|improve this question
















I have puppy linux installed on a 32 bit machine.
I installed python 3.5 and Pip3 libraries via puppy package manager.
When I run pip3, I receive this error:



root# pip3
bash: /usr/bin/pip3: /usr/bin/python3: bad interpreter: No such file or directory


Any idea how can I fix this issue? Seems like pip3 is looking for a wrong path.



More info:



  • I don't have pip installed.

  • I have two different versions of python installed where the default one is Python 2.6.4


  • Python path



    root# which python



    /usr/bin/python




What I tried:




  • according to this answer I tried



    root# head -n1 /usr/local/bin/pip
    head: cannot open '/usr/local/bin/pip' for reading: No such file or directory



however as shown above, it ends in an error. Moreover there is no /usr/local/opt directory




Conclusion:



Seems like pip3 is looking for /usr/bin/python3 while python is installed in /usr/bin/python3.5







pip puppy-linux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 23 '17 at 12:39









Community

1




1










asked Aug 4 '16 at 11:39









WoeitgWoeitg

2441619




2441619












  • The real fix is of course to complain to the maintainer of the Python3 package (as opposed to complaining on Unix & Linux), but in the mean time adding a symlink python3 -> python3.5 will make your life easier.

    – Satō Katsura
    Aug 4 '16 at 12:17












  • I ran ln -s python3 -> python3.5 with success. but still I get the same error when running pip3. Strange point is when I run python3 the command is not known, however python3.5 is running. Did I make any mistake?

    – Woeitg
    Aug 4 '16 at 12:37







  • 2





    To create the symlink I'm talking about: cd /usr/bin && ln -s python3.5 python3. You might also need to restart the current terminal after that ($PATH is sometimes cached etc.).

    – Satō Katsura
    Aug 4 '16 at 12:41











  • tnx,,now it is working. If you are interested, answer this question with what is written in comment and I will accept it

    – Woeitg
    Aug 4 '16 at 12:50






  • 1





    It's a workaround for a broken package, not a solution. shrug.

    – Satō Katsura
    Aug 4 '16 at 12:51

















  • The real fix is of course to complain to the maintainer of the Python3 package (as opposed to complaining on Unix & Linux), but in the mean time adding a symlink python3 -> python3.5 will make your life easier.

    – Satō Katsura
    Aug 4 '16 at 12:17












  • I ran ln -s python3 -> python3.5 with success. but still I get the same error when running pip3. Strange point is when I run python3 the command is not known, however python3.5 is running. Did I make any mistake?

    – Woeitg
    Aug 4 '16 at 12:37







  • 2





    To create the symlink I'm talking about: cd /usr/bin && ln -s python3.5 python3. You might also need to restart the current terminal after that ($PATH is sometimes cached etc.).

    – Satō Katsura
    Aug 4 '16 at 12:41











  • tnx,,now it is working. If you are interested, answer this question with what is written in comment and I will accept it

    – Woeitg
    Aug 4 '16 at 12:50






  • 1





    It's a workaround for a broken package, not a solution. shrug.

    – Satō Katsura
    Aug 4 '16 at 12:51
















The real fix is of course to complain to the maintainer of the Python3 package (as opposed to complaining on Unix & Linux), but in the mean time adding a symlink python3 -> python3.5 will make your life easier.

– Satō Katsura
Aug 4 '16 at 12:17






The real fix is of course to complain to the maintainer of the Python3 package (as opposed to complaining on Unix & Linux), but in the mean time adding a symlink python3 -> python3.5 will make your life easier.

– Satō Katsura
Aug 4 '16 at 12:17














I ran ln -s python3 -> python3.5 with success. but still I get the same error when running pip3. Strange point is when I run python3 the command is not known, however python3.5 is running. Did I make any mistake?

– Woeitg
Aug 4 '16 at 12:37






I ran ln -s python3 -> python3.5 with success. but still I get the same error when running pip3. Strange point is when I run python3 the command is not known, however python3.5 is running. Did I make any mistake?

– Woeitg
Aug 4 '16 at 12:37





2




2





To create the symlink I'm talking about: cd /usr/bin && ln -s python3.5 python3. You might also need to restart the current terminal after that ($PATH is sometimes cached etc.).

– Satō Katsura
Aug 4 '16 at 12:41





To create the symlink I'm talking about: cd /usr/bin && ln -s python3.5 python3. You might also need to restart the current terminal after that ($PATH is sometimes cached etc.).

– Satō Katsura
Aug 4 '16 at 12:41













tnx,,now it is working. If you are interested, answer this question with what is written in comment and I will accept it

– Woeitg
Aug 4 '16 at 12:50





tnx,,now it is working. If you are interested, answer this question with what is written in comment and I will accept it

– Woeitg
Aug 4 '16 at 12:50




1




1





It's a workaround for a broken package, not a solution. shrug.

– Satō Katsura
Aug 4 '16 at 12:51





It's a workaround for a broken package, not a solution. shrug.

– Satō Katsura
Aug 4 '16 at 12:51










1 Answer
1






active

oldest

votes


















1














$ hash -r


If you execute a command to erase something like caching, you can safely use pip.
There is not time for hash command now, so do not investigate deeply.



Please note this memorable second time so as not to forget.






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',
    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
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f301255%2fpip3-is-looking-for-a-wrong-path-when-there-are-two-pythons-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









    1














    $ hash -r


    If you execute a command to erase something like caching, you can safely use pip.
    There is not time for hash command now, so do not investigate deeply.



    Please note this memorable second time so as not to forget.






    share|improve this answer



























      1














      $ hash -r


      If you execute a command to erase something like caching, you can safely use pip.
      There is not time for hash command now, so do not investigate deeply.



      Please note this memorable second time so as not to forget.






      share|improve this answer

























        1












        1








        1







        $ hash -r


        If you execute a command to erase something like caching, you can safely use pip.
        There is not time for hash command now, so do not investigate deeply.



        Please note this memorable second time so as not to forget.






        share|improve this answer













        $ hash -r


        If you execute a command to erase something like caching, you can safely use pip.
        There is not time for hash command now, so do not investigate deeply.



        Please note this memorable second time so as not to forget.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 2 at 10:08









        Shaobo LiuShaobo Liu

        111




        111



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f301255%2fpip3-is-looking-for-a-wrong-path-when-there-are-two-pythons-installed%23new-answer', 'question_page');

            );

            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






            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?