Help to Install Python on Ubuntu

Started by gulshannegi, August 16, 2021, 11:48:35 AM

Previous topic - Next topic

gulshannegi

I am trying to install Python 3.9 on my Ubuntu OS, I try to install Python in the following manner
sudo apt-get install python3.9
after seems installed I tried checking the version:
python -V
However, this input returns:
-bash: python: command not found
It seems like Python versions don't fully install.
Please Help me how can I Install Python On Ubuntu?

WAS

Try running the command
python3.9 --version
I don't think it runs off "python" command. Least I don't remember using it that way.

Also did you install pre-requisites before isntalling Python? The software properties common package?

apt install software-properties-common

gulshannegi

Thanks for your reply, I face many of the issue when i install the Python on my Ubantu OS, but finally i did this, I Start by updating the packages list and installing the prerequisites: $ sudo apt update $ sudo apt install software-properties-common Next, add the deadsnakes PPA to your sources list: $ sudo add-apt-repository ppa:deadsnakes/ppa Once the repository is enabled, install Python 3.7 with: $ sudo apt install python3.7 can check the version of python using, this post is really help me to Install the Python

Dune

Spammer after all. I thought it would be....


Dune