python command on terminal not workingeasy_install with different pythonProblem with installing a python...

How much of data wrangling is a data scientist's job?

Facing a paradox: Earnshaw's theorem in one dimension

Today is the Center

How can I make my BBEG immortal short of making them a Lich or Vampire?

Neighboring nodes in the network

How to show the equivalence between the regularized regression and their constraint formulas using KKT

Why do I get two different answers for this counting problem?

Should I tell management that I intend to leave due to bad software development practices?

Is it possible to run Internet Explorer on OS X El Capitan?

Forgetting the musical notes while performing in concert

Why does Arabsat 6A need a Falcon Heavy to launch

How to take photos in burst mode, without vibration?

Brothers & sisters

Is the Joker left-handed?

What is the word for reserving something for yourself before others do?

Python: return float 1.0 as int 1 but float 1.5 as float 1.5

Alternative to sending password over mail?

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

Assassin's bullet with mercury

Watching something be written to a file live with tail

Why does Kotter return in Welcome Back Kotter

Can a rocket refuel on Mars from water?

Why is the 'in' operator throwing an error with a string literal instead of logging false?

Is there a hemisphere-neutral way of specifying a season?



python command on terminal not working


easy_install with different pythonProblem with installing a python moduleHow to remove a path from system path(`$PATH`) using terminal commands?Some error messages displayed when I start terminal (both as root and as normal user)Terminal crashes when running lsblk -hDefault to python3 for '/usr/bin/env python'why sudo -H pip -V differs from pip -VUsing “make” command not workingpip install gives “Command ”python setup.py egg_info“ failed with error code 1”Deleted python3.5 in /usr/local/bin






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















Same question found here but without a valid solution. The problem is that typing python in the terminal produces:



The program 'python' can be found in the following packages:
* python-minimal
* python3
Try: sudo apt install <selected package>


In fact, $ which python returns nothing. Additional information:



~$ echo $PATH
/usr/local/cuda-8.0/bin:/home/fontana/bin:/home/fontana/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


By default python should point to python2.7 in /user/bin. If I type python2.7, python runs normally. How to restore the default behavior when typing python in the terminal?



EDIT: Potential source of the problem: I've recently installed python 3.4.6 (in /user/local/bin) using the following commands. Than I tried to reinstall python 3.4.6 since there was a problem with pip now fixed.



./configure
make
make test
sudo make install









share|improve this question

























  • The next question is then always: what did you do that might have caused this?

    – Jacob Vlijm
    Mar 8 '17 at 19:34






  • 1





    The answer is in the question: Reinstall python-minimal.

    – user535733
    Mar 8 '17 at 19:36











  • I've edited the post.

    – MLguy
    Mar 8 '17 at 19:42






  • 1





    DO NOT change the system version of Python. You will break your system horribly. Change it back. If you must add a new version of python, then install it manually instead of using packages.

    – user535733
    Mar 8 '17 at 19:49











  • I'm not capable to restore the previous situation. My impression is that pointing python (when typed in the terminal) to /usr/bin/python2.7 should do the trick, but I don't know how (maybe using export PATH?).

    – MLguy
    Mar 8 '17 at 20:22




















2















Same question found here but without a valid solution. The problem is that typing python in the terminal produces:



The program 'python' can be found in the following packages:
* python-minimal
* python3
Try: sudo apt install <selected package>


In fact, $ which python returns nothing. Additional information:



~$ echo $PATH
/usr/local/cuda-8.0/bin:/home/fontana/bin:/home/fontana/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


By default python should point to python2.7 in /user/bin. If I type python2.7, python runs normally. How to restore the default behavior when typing python in the terminal?



EDIT: Potential source of the problem: I've recently installed python 3.4.6 (in /user/local/bin) using the following commands. Than I tried to reinstall python 3.4.6 since there was a problem with pip now fixed.



./configure
make
make test
sudo make install









share|improve this question

























  • The next question is then always: what did you do that might have caused this?

    – Jacob Vlijm
    Mar 8 '17 at 19:34






  • 1





    The answer is in the question: Reinstall python-minimal.

    – user535733
    Mar 8 '17 at 19:36











  • I've edited the post.

    – MLguy
    Mar 8 '17 at 19:42






  • 1





    DO NOT change the system version of Python. You will break your system horribly. Change it back. If you must add a new version of python, then install it manually instead of using packages.

    – user535733
    Mar 8 '17 at 19:49











  • I'm not capable to restore the previous situation. My impression is that pointing python (when typed in the terminal) to /usr/bin/python2.7 should do the trick, but I don't know how (maybe using export PATH?).

    – MLguy
    Mar 8 '17 at 20:22
















2












2








2


1






Same question found here but without a valid solution. The problem is that typing python in the terminal produces:



The program 'python' can be found in the following packages:
* python-minimal
* python3
Try: sudo apt install <selected package>


In fact, $ which python returns nothing. Additional information:



~$ echo $PATH
/usr/local/cuda-8.0/bin:/home/fontana/bin:/home/fontana/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


By default python should point to python2.7 in /user/bin. If I type python2.7, python runs normally. How to restore the default behavior when typing python in the terminal?



EDIT: Potential source of the problem: I've recently installed python 3.4.6 (in /user/local/bin) using the following commands. Than I tried to reinstall python 3.4.6 since there was a problem with pip now fixed.



./configure
make
make test
sudo make install









share|improve this question
















Same question found here but without a valid solution. The problem is that typing python in the terminal produces:



The program 'python' can be found in the following packages:
* python-minimal
* python3
Try: sudo apt install <selected package>


In fact, $ which python returns nothing. Additional information:



~$ echo $PATH
/usr/local/cuda-8.0/bin:/home/fontana/bin:/home/fontana/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


By default python should point to python2.7 in /user/bin. If I type python2.7, python runs normally. How to restore the default behavior when typing python in the terminal?



EDIT: Potential source of the problem: I've recently installed python 3.4.6 (in /user/local/bin) using the following commands. Than I tried to reinstall python 3.4.6 since there was a problem with pip now fixed.



./configure
make
make test
sudo make install






command-line 16.04 python






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 Mar 8 '17 at 19:33









MLguyMLguy

14629




14629













  • The next question is then always: what did you do that might have caused this?

    – Jacob Vlijm
    Mar 8 '17 at 19:34






  • 1





    The answer is in the question: Reinstall python-minimal.

    – user535733
    Mar 8 '17 at 19:36











  • I've edited the post.

    – MLguy
    Mar 8 '17 at 19:42






  • 1





    DO NOT change the system version of Python. You will break your system horribly. Change it back. If you must add a new version of python, then install it manually instead of using packages.

    – user535733
    Mar 8 '17 at 19:49











  • I'm not capable to restore the previous situation. My impression is that pointing python (when typed in the terminal) to /usr/bin/python2.7 should do the trick, but I don't know how (maybe using export PATH?).

    – MLguy
    Mar 8 '17 at 20:22





















  • The next question is then always: what did you do that might have caused this?

    – Jacob Vlijm
    Mar 8 '17 at 19:34






  • 1





    The answer is in the question: Reinstall python-minimal.

    – user535733
    Mar 8 '17 at 19:36











  • I've edited the post.

    – MLguy
    Mar 8 '17 at 19:42






  • 1





    DO NOT change the system version of Python. You will break your system horribly. Change it back. If you must add a new version of python, then install it manually instead of using packages.

    – user535733
    Mar 8 '17 at 19:49











  • I'm not capable to restore the previous situation. My impression is that pointing python (when typed in the terminal) to /usr/bin/python2.7 should do the trick, but I don't know how (maybe using export PATH?).

    – MLguy
    Mar 8 '17 at 20:22



















The next question is then always: what did you do that might have caused this?

– Jacob Vlijm
Mar 8 '17 at 19:34





The next question is then always: what did you do that might have caused this?

– Jacob Vlijm
Mar 8 '17 at 19:34




1




1





The answer is in the question: Reinstall python-minimal.

– user535733
Mar 8 '17 at 19:36





The answer is in the question: Reinstall python-minimal.

– user535733
Mar 8 '17 at 19:36













I've edited the post.

– MLguy
Mar 8 '17 at 19:42





I've edited the post.

– MLguy
Mar 8 '17 at 19:42




1




1





DO NOT change the system version of Python. You will break your system horribly. Change it back. If you must add a new version of python, then install it manually instead of using packages.

– user535733
Mar 8 '17 at 19:49





DO NOT change the system version of Python. You will break your system horribly. Change it back. If you must add a new version of python, then install it manually instead of using packages.

– user535733
Mar 8 '17 at 19:49













I'm not capable to restore the previous situation. My impression is that pointing python (when typed in the terminal) to /usr/bin/python2.7 should do the trick, but I don't know how (maybe using export PATH?).

– MLguy
Mar 8 '17 at 20:22







I'm not capable to restore the previous situation. My impression is that pointing python (when typed in the terminal) to /usr/bin/python2.7 should do the trick, but I don't know how (maybe using export PATH?).

– MLguy
Mar 8 '17 at 20:22












2 Answers
2






active

oldest

votes


















3














I fixed the problem with



sudo apt install python-minimal


as suggested in the warning message. I have decided to install python-minimal rather than python3 since the latter was already working smoothly in the terminal.






share|improve this answer































    0














    Installing python-minimal solved my problem us the command "sudo apt install python-minimal" and I managed to solve it on my vagrant server also.






    share|improve this answer








    New contributor




    Vishad Kaushik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      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: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      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%2faskubuntu.com%2fquestions%2f891010%2fpython-command-on-terminal-not-working%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3














      I fixed the problem with



      sudo apt install python-minimal


      as suggested in the warning message. I have decided to install python-minimal rather than python3 since the latter was already working smoothly in the terminal.






      share|improve this answer




























        3














        I fixed the problem with



        sudo apt install python-minimal


        as suggested in the warning message. I have decided to install python-minimal rather than python3 since the latter was already working smoothly in the terminal.






        share|improve this answer


























          3












          3








          3







          I fixed the problem with



          sudo apt install python-minimal


          as suggested in the warning message. I have decided to install python-minimal rather than python3 since the latter was already working smoothly in the terminal.






          share|improve this answer













          I fixed the problem with



          sudo apt install python-minimal


          as suggested in the warning message. I have decided to install python-minimal rather than python3 since the latter was already working smoothly in the terminal.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 18 '17 at 8:12









          MLguyMLguy

          14629




          14629

























              0














              Installing python-minimal solved my problem us the command "sudo apt install python-minimal" and I managed to solve it on my vagrant server also.






              share|improve this answer








              New contributor




              Vishad Kaushik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.

























                0














                Installing python-minimal solved my problem us the command "sudo apt install python-minimal" and I managed to solve it on my vagrant server also.






                share|improve this answer








                New contributor




                Vishad Kaushik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.























                  0












                  0








                  0







                  Installing python-minimal solved my problem us the command "sudo apt install python-minimal" and I managed to solve it on my vagrant server also.






                  share|improve this answer








                  New contributor




                  Vishad Kaushik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  Installing python-minimal solved my problem us the command "sudo apt install python-minimal" and I managed to solve it on my vagrant server also.







                  share|improve this answer








                  New contributor




                  Vishad Kaushik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Vishad Kaushik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 13 mins ago









                  Vishad KaushikVishad Kaushik

                  1




                  1




                  New contributor




                  Vishad Kaushik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Vishad Kaushik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Vishad Kaushik is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • 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%2faskubuntu.com%2fquestions%2f891010%2fpython-command-on-terminal-not-working%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

                      Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

                      Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

                      Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...