Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on Why is "'python' not found" on Debian/Ubuntu/Mint/etc. ?

Post

Why is "'python' not found" on Debian/Ubuntu/Mint/etc. ?

+4
−0

This question is motivated by several threads and posts on the Linux Mint forums in which people encounter this sort of problem.

On Debian-derived distributions of Linux, it's possible that the python command described in tutorials may not work out of box:

$ python /path/to/tutorial/folder/example_script.py
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3

Similarly for third-party software that suggests explicitly running a Python script to start the program, or to execute a script that has a shebang line like #!/usr/bin/python or #!/usr/bin/env python.

I had understood that Python is not only pre-installed, but critical for my system to operate properly. Why can't the python command be found, and what should I do about it?

History

1 comment thread

Self answer delays (1 comment)
Self answer delays
trichoplax‭ wrote about 1 year ago

It's always great to see self answers (and I assume the question was posted for this purpose), but when there's a delay before the answer arrives it can lead to others drafting an answer that then becomes redundant before they post it. This is always a risk when writing any answer for any question, but with a question intended for a self answer the probability can be reduced by drafting the question and the answer together, so they can be posted in quick succession.

Not a rule, but hopefully helpful.

Of course anyone is still free to post further answers after the self answer, but with many questions any other answers being drafted in parallel will have nothing further to add so the time spent is lost.