![]() ![]() configure -enable-optimizations make altinstall Use below set of commands to compile Python source code on your system using altinstall. tar xzf Python-3.7.11.tgz Step 3 – Install Python 3.7 You can also download the latest version in place of specified below. Read: How to Use SSH to Connect Remote Linux Serverĭownload Python using the following command from the Python official site. ![]() yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel xz-devel Now, use the following command to install prerequisites for Python before installing it. Login to your server using ssh or shell access. Let’s start by updating our Amazon Linux 2 system and installing the GCC** and other dependencies to be able to compile it.This Python installation required the GCC compiler on your system. If you don’t have any issues with the existing installed versions of Python in your Amazon Linux Ami 2, then you are fine □īut if you want to install different versions of Python from the source then please follow. Here you will see the output of Python 2.x and 3.x package versions. That’s why in this post we’re installing Python3 on Amazon Linux 2 by compiling it from the source.įirst of all, Let’s check the existing Python version by python -version or python3 -versionin the EC2 instance, we have. The available versions of Python in the default repositories might not be up to date or you may want to use different versions of Python. If you want to check other versions and release notes of python here you can use this link How to install Python3 on Amazon Linux 2? Prerequisites
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |