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;
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
|
show 4 more comments
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
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
|
show 4 more comments
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
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
command-line 16.04 python
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
|
show 4 more comments
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
|
show 4 more comments
2 Answers
2
active
oldest
votes
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.
add a comment |
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.
New contributor
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Apr 18 '17 at 8:12
MLguyMLguy
14629
14629
add a comment |
add a comment |
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.
New contributor
add a comment |
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.
New contributor
add a comment |
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.
New contributor
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.
New contributor
New contributor
answered 1 hour ago
Vishad KaushikVishad Kaushik
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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