0
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?

More than 5 years have passed since last update.

CentOS 8にPython 3.7をソースファイルからインストールする

Last updated at Posted at 2020-01-13

必要なパッケージをインストール

sudo dnf groupinstall 'Development Tools'
sudo dnf install zlib-devel libffi-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libuuid-devel xz-devel

これらのパッケージをインストールしておかないと、ビルドされたPythonで、使えない機能(SQLite等)が出てくる。

ビルド、インストール

wget https://www.python.org/ftp/python/3.7.6/Python-3.7.6.tgz
tar -xzvf Python-3.7.6.tgz
cd Python-3.7.6
./configure --enable-optimizations
make
sudo make altinstall

参考

0
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
0
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?