1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Python3.13.1 on AmazonLinux 2023(ESXi)

Posted at

Python3.10以降をインストールする際に、openssl関連でパッケージなんだっけ?OS毎に異なるっけ?となるので、備忘録です。

前提

OS:Linux amznlinux2023 6.1.124-134.200.amzn2023.x86_64

1. 必要packageのインストール

ビルドに必要となるpackageを入れておきます。

yum install -y bzip2 bzip2-devel gcc git libffi-devel readline readline-devel sqlite sqlite-devel zlib-devel libdb-devel gdbm-devel xz-devel tk-devel uuid-devel libuuid-devel
yum install -y openssl-devel 

公式サイトからPython-3.13.1.tgzをダウンロード。

wget https://www.python.org/ftp/python/3.13.1/Python-3.13.1.tgz
tar xzvf Python-3.13.1.tgz
cd Python-3.13.1
./configure --enable-optimizations
make
make install

バージョン確認

[root@xxxx ~]# exit
[root@xxxx ~]# sudo su -
[root@xxxx ~]# python3 -V
Python 3.13.1
[root@xxxx ~]# pip3 -V
pip 25.0 from /usr/local/lib/python3.13/site-packages/pip (python 3.13)

OVAファイルからESXiの仮想マシンとして起動した場合、ホストとの時刻同期がデフォルト有効となります。ホスト側が9時間ずれているなどあれば、以下記事を参考にしてください。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?