Install python 3.7 ubuntu5/4/2023 ![]() Compile the source codeĮnter the source directory, and run the commands to build the source. sudo apt install -y build-essential libreadline-dev libssl-dev libsqlite3-dev libgdbm-dev libgdbm-compat-dev libbz2-dev tk-dev liblzma-dev libffi-dev 3. If you don't have access to sudo at all, you should try to compile following the later steps without installing these dependencies, and if necessary you can try to install the dependencies for your current user (this is kind of advanced, but should be possible). You can choose to ignore some of these if you want. To build python with all its features, we will install the minimum build dependencies, plus some optional once to get features like ssl for python. Your system may or may not have these already installed. Install build dependencies (somewhat optional) As I'm writing this guide, the latest version is 3.7.9. Download the source codeįirst download the source. Note that it will only be available for that user, and can be convenient if you don't want to affect other users on the same machine. ![]() ![]() This guide will show you how you can install Python 3.7 (or any other version) for a single user without using sudo.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |