![]() 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. You have installed Kali Linux on your machine.How to install Python on Kali Linux using the Terminal Let’s get right into the purpose of this tutorial. I take it lightly, and with every new problem comes a new experience of having to research and troubleshoot the problem. Kali Linux is easy to learn, depending on how you take it. That’s why we have come to this tutorial, where you will learn how to install Python on a Kali Linux machine or any other Debian-based operating system such as Ubuntu. You learn and experience new things every day. Well, that is where the fun is.īeing creative like me should mean that you would never settle for less. I know it seems tedious and mind-intensive to remember all the commands. Most people seem to be intimidated by a Linux Terminal. On top of that, I like being different and taking on challenges others prefer to avoid, like using Linux. Linux offers too much when it comes to programming. Why should I do that too? Can’t I just use a Linux operating system for local and deployment purposes? Most programmers would prefer to develop their programs on a Windows machine and later deploy the applications on a Linux instance. You install Python on Kali Linux by opening a Terminal window and running the following commands: sudo apt update & sudo apt upgrade -y sudo apt install python3 python3-pip Installing Python on Kali Linux is very easy as you have to follow a few steps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |