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

                      Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                      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'

                      Where is the suspend/hibernate button in GNOME Shell? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)No suspend option in UI on Bionic BeaverHow can I set sleep mode in ubuntu18.04 LTS and what is the short cut key to do so?17.10 suspend not availableUbuntu 18.04 LTS missing sleep optionUbuntu 18.04 LTS - missing suspend option when power button is pressedHow to put Thinkpad X1 Extreme to sleep in Ubuntu 18.10?Suspend Button in interactive power button menu18.04 - Keep programs running after logging outway to disable Hibernate from within gconf-editor so button disappears?How can I hibernate from GNOME Shell?How can I hibernate/suspend from the command line and do so at a specific timeNo permission to suspend/hibernate after upgrading to 12.10MATE - Missing Suspend and Hibernate buttons, pressing power button shutdowns system immediatelyUbuntu 14.04: Suspend, Hibernate and Suspend-hybrid in the menu?Change “power-button-action” comand for “hibernate” option in GNOME 3.18Shutdown / Power off button does always go to suspend on 17.10Hibernate after suspend stopped working in 17.10Why doesn't the keyboard screenshot button work on Ubuntu with GNOME shell?