LoginSignup
0
1

More than 5 years have passed since last update.

CentOS7 に Python 3系を入れよう

Last updated at Posted at 2018-06-19

python3.5を入れてみよう
というか入れなきゃいけない

環境

OS: CentOS 7 minimal

インストール

まず、リポジトリの追加

yum install -y https://centos7.iuscommunity.org/ius-release.rpm

必要なものを追加

yum install -y python35u python35u-libs python35u-devel python35u-pip

これで終了とおもったら
pip 使えない、、、、
え、インストールできてない!?

$ python --version
Python 2.7.5

あれれ、古い。
そうだ、共存してるんだ。

$ python3.5 --version
Python 3.5.5

おけおけpipもpip3.5なのか

$ pip3.5 --version
pip 9.0.1 from /usr/lib/python3.5/site-packages (python 3.5)

よし使えるようになった。
ごちそうさまです。

感想

これで良し。でも3.5ってうつのめんどいな、、、、。

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