Similarly, when Python version 3 was released, distributions started providing both python2 and python3 packages. Other applications or libraries also specified python or python2 in their code.Įventually, Python version 1 was discontinued completely but the package continued to be named python2. So, they named the newer Python version python2 to distinguish between the two. When Python released version 2, Ubuntu and other distros had to provide support for both Python version 1.x and 2.x. It’s because the Python language is not installed as python but python3 or python2 (in some older Ubuntu versions).Īt some point in time in the distant past, Python was actually available as python package/executable. Why there is no python command found on Ubuntu? The python command is actually python3 here. If you pay attention to the error message, it clears a lot of things. Command ‘python’ not found, did you mean:Ĭommand ‘python’ from deb python-is-python3 However, if you try to use the python command in Ubuntu (and some other distributions), it will throw an error. How do you run a Python program in the Linux terminal? Like this, right? python program.py
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |