How to Install Software From the Source Code in WSL2

Original article was published by The Altruist on Artificial Intelligence on Medium


Install the Python Dependencies:

Python must be compiled from the source code to install the specific version or multiple versions in Linux. It needs to be configured, built, and installed using the Make program. It also needs to have its dependencies installed by the Linux package manager because the Make program can’t install them.

The Dependencies are the other binary packages that the particular binary package needs to work properly. They’re relied on by nearly every program that’s distributed in Linux. They’re also automatically located, downloaded, and installed when the program is installed by the Linux package manager.

The Binary Package is the archive file that contains the files and directories needed to make the containing program work as expected. It’s stored in the repository that contains all the programs for the specific Linux distribution. It also needs the Linux package manager to access, extract, and install it.

The Software Program is made up of source code that’s written in a specific programming language. It’s compiled to convert the source code into the machine language that the computer can execute. This produces the binary packages that contain the finished programs that the computer can run.

In this section, we’ll install the Python dependencies:

  1. Copy the command from below these instructions
  2. Paste the command into PowerShell
  3. Press “Enter”
sudo apt-get install libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev llvm libncurses5-dev libncursesw5-dev tk-dev libgdbm-dev