Comments on: How to Install Python 3.9 on Amazon Linux 2 https://tecadmin.net/install-python-3-9-on-amazon-linux/ How to guide for System Administrator's and Developers Fri, 30 Dec 2022 02:16:37 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Odin https://tecadmin.net/install-python-3-9-on-amazon-linux/#comment-65640 Fri, 30 Dec 2022 02:16:37 +0000 https://tecadmin.net/?p=23449#comment-65640 Thank you @d00m you saved the day

]]>
By: Paul Whipp https://tecadmin.net/install-python-3-9-on-amazon-linux/#comment-63594 Tue, 16 Nov 2021 20:08:11 +0000 https://tecadmin.net/?p=23449#comment-63594 This is a good clear guide but on Amazon Linux, Python is build without ssl using this method which results in errors when trying to use pip etc.

]]>
By: d00m https://tecadmin.net/install-python-3-9-on-amazon-linux/#comment-63297 Tue, 17 Aug 2021 18:59:17 +0000 https://tecadmin.net/?p=23449#comment-63297 sudo yum install sqlite-devel
cd Python-3.9.6
sudo ./configure –enable-optimizations –enable-loadable-sqlite-extensions
sudo make altinstall

]]>
By: Max https://tecadmin.net/install-python-3-9-on-amazon-linux/#comment-62990 Thu, 10 Jun 2021 19:17:03 +0000 https://tecadmin.net/?p=23449#comment-62990 Hey Rahul, thanks for the article. It worked for me, but when I tried to start a simple django app I got


File “/usr/local/lib/python3.9/sqlite3/__init__.py”, line 23, in
from sqlite3.dbapi2 import *
File “/usr/local/lib/python3.9/sqlite3/dbapi2.py”, line 27, in
from _sqlite3 import *
ModuleNotFoundError: No module named ‘_sqlite3’

Looks like the latest django version requires sqlite 3.9, but in the Linux 2 only 3.7 installed. Do you know how to fix it?

]]>