8/23/2023 0 Comments Linux see all python versionsThe safest way is to use altinstall to prevent replacing the default Python file. If you were to replace the original Python binary file installed on /usr/bin/python, you would likely mess up with the compatibility and dependencies of already installed OS packages. Run the following commands to install Python 3.8 on your Linux: cd Python-3.8.0 ![]() cd /usr/srcĪfter downloading, extract the Python archive by running the following command: sudo tar xzf Python-3.8.0.tgz Step 3: Compile the downloaded Python source code and install it on your Linux system The usr/src folder holds files used by programs to compile or build packages. Navigate into the /usr/src folder on your Linux machine and download the Python archive. Head over to and note the Python filename of the Python version you intend to install.įor example, if you want to install Python version 3.8, the filename will be Python-3.8.0.tgz. Step 2: Download and extract Python tarball To learn more on how Linux commands such as apt and sudo, you should check out this ridiculously simple course: To install the required packages, run the following commands: sudo apt-get install build-essential checkinstall libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev You have to install additional packages before installing Python. To do that, you have to follow these steps. Well, you may install a specific Python version by downloading it from the sources, compiling it, and then installing it. What if you want to install a specific version of Python on Kali Linux? How to install specific Python version in Kali Linux ![]() That version will work just fine as the latest version. Thus, testing the version before adding it to the distribution release is necessary.ĭon’t worry, though. If the OS used the latest Python version immediately after its release, it would lead to compatibility and dependency issues. Maintainers test each python version for compatibility with the OS and applications that depend on it. Well, this comes back to the sudo apt update command. On some occasions, you may find the latest version advertised on the website is not the same as the one installed on your system. ![]() You should see a textual output indicating the Python version installed on your system. If you miss running the command, your package sources list will have outdated package versions.Īfter the command executes successfully, run the following commands to confirm that the latest Python version has been installed on your system. The command served to update the sources list to the latest distribution release with all the operating system’s packages, libraries, utilities, and drivers. Remember, we executed the command, sudo apt update. The command will install the latest Python version on the Debian distribution release. To do that, type the following: sudo apt install python3 Well, after a successful upgrade, it is time to install the latest Python version on your system. Wait for the system to complete upgrading.ĭo not judge me, but I sometimes place my laptop where everybody can see the text printed on the Terminal and wait for the moment they say … Hoping you have all the things ready, open a new Terminal window and start typing the following: sudo apt update & sudo apt upgrade -y For me, I prefer my brain cells to be working right. If you haven’t done that, check this article on How to install Kali Linux alongside Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |