python command on terminal not workingeasy_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

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

Is it possible to create light that imparts a greater proportion of its energy as momentum rather than heat?

Theorems that impeded progress

Anagram holiday

Fully-Firstable Anagram Sets

How to say in German "enjoying home comforts"

What is going on with Captain Marvel's blood colour?

Is "remove commented out code" correct English?

Where does SFDX store details about scratch orgs?

Forgetting the musical notes while performing in concert

AES: Why is it a good practice to use only the first 16bytes of a hash for encryption?

How to take photos in burst mode, without vibration?

90's TV series where a boy goes to another dimension through portal near power lines

Can I ask the recruiters in my resume to put the reason why I am rejected?

How could indestructible materials be used in power generation?

Blender 2.8 I can't see vertices, edges or faces in edit mode

Infinite Abelian subgroup of infinite non Abelian group example

What about the virus in 12 Monkeys?

Is it canonical bit space?

How can I tell someone that I want to be his or her friend?

Arrow those variables!

How to draw the figure with four pentagons?

A reference to a well-known characterization of scattered compact spaces

How to prevent "they're falling in love" trope



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

                      Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

                      What to do with chalk when deepwater soloing? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Photo Competition: April - At Home in The Great OutdoorsIs it ok for my climbing shoes/chalk bag to get wet?What hand and finger exercises help with climbing?Chalk: pure, plus drying agent, liquid?What can I do with a retired rope and harness?What to do with the lap coiled rope if the belayer wishes to lead consecutive pitches?How do to a safety knot when abseiling with 2 ropes?What are the advantages of being short when climbing?When should you start to train with Campus Boards, Hang Boards and Peg Boards?Climbing: fear/panic on boulder wallWith what specific techniques are various bouldering grades associated?What are the most important numerical features to look for when comparing climbing ropes?

                      How to start Thunderbird minimized on start-up?How to run Thunderbird on startup, minimised?How to make Thunderbird Mail runs at startup?How do I start applications automatically on login?How can I delay a specific program on startup?How do I hide Thunderbird from the launcher while running?How to keep Thunderbird and Pidgin running on background?How to open Thunderbird minimised at startup in Ubuntu 16.04How to start Thunderbird minimized to Unity system tray on start-up?Minimize Thunderbird to Traythunderbird script to disable option: “delete message on server”Why is Thunderbird pegging a core at 100%?Thunderbird resets profile after second start upClearing out Thunderbird on UbuntuThunderbird and a shared “home” partitionBidirectionally synchronize Thunderbird profiles (POP3 mail accounts) between two computersWhy doesn't Ubuntu/Thunderbird save my PGP key?How to start Thunderbird minimized to Unity system tray on start-up?Recovering thunderbird files from quick formatted drive?