本記事ではCentOS 7.3でpython-develをインストールする手順を紹介します。
python-develは、Pythonの開発に必要なヘッダファイルやライブラリファイルなどが含まれている開発用ツールです。Python言語を使った開発を行う際には必要となる場合が多いです。
OSバージョン確認
$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
python-develがインストールされていないことの確認
$ rpm -qa python-devel
出力なし
yumを使ったpython-develのインストール
$ sudo yum install python-devel
Resolving Dependencies
–> Running transaction check
—> Package python-devel.x86_64 0:2.7.5-58.el7 will be installed
–> Processing Dependency: python(x86-64) = 2.7.5-58.el7 for package: python-devel-2.7.5-58.el7.x86_64
–> Running transaction check
—> Package python.x86_64 0:2.7.5-48.el7 will be updated
—> Package python.x86_64 0:2.7.5-58.el7 will be an update
–> Processing Dependency: python-libs(x86-64) = 2.7.5-58.el7 for package: python-2.7.5-58.el7.x86_64
–> Running transaction check
—> Package python-libs.x86_64 0:2.7.5-48.el7 will be updated
—> Package python-libs.x86_64 0:2.7.5-58.el7 will be an update
–> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
python-devel x86_64 2.7.5-58.el7 base 395 k
Updating for dependencies:
python x86_64 2.7.5-58.el7 base 91 k
python-libs x86_64 2.7.5-58.el7 base 5.6 M
Transaction Summary
============================================================================================================================================
Install 1 Package
Upgrade ( 2 Dependent packages)
Total download size: 6.1 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/3): python-2.7.5-58.el7.x86_64.rpm | 91 kB 00:00:00
(2/3): python-devel-2.7.5-58.el7.x86_64.rpm | 395 kB 00:00:00
(3/3): python-libs-2.7.5-58.el7.x86_64.rpm | 5.6 MB 00:00:00
——————————————————————————————————————————————–
Total 6.1 MB/s | 6.1 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : python-libs-2.7.5-58.el7.x86_64 1/5
Updating : python-2.7.5-58.el7.x86_64 2/5
Installing : python-devel-2.7.5-58.el7.x86_64 3/5
Cleanup : python-2.7.5-48.el7.x86_64 4/5
Cleanup : python-libs-2.7.5-48.el7.x86_64 5/5
Verifying : python-libs-2.7.5-58.el7.x86_64 1/5
Verifying : python-devel-2.7.5-58.el7.x86_64 2/5
Verifying : python-2.7.5-58.el7.x86_64 3/5
Verifying : python-2.7.5-48.el7.x86_64 4/5
Verifying : python-libs-2.7.5-48.el7.x86_64 5/5
Installed:
python-devel.x86_64 0:2.7.5-58.el7
Dependency Updated:
python.x86_64 0:2.7.5-58.el7 python-libs.x86_64 0:2.7.5-58.el7
Complete!
インストール結果確認
$ rpm -qa python-devel
python-devel-2.7.5-58.el7.x86_64
上記が表示されればインストールは正常に完了。
コメントを残す