Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
OrganizationAdvent CalendarQiitadon (β)
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

CentOS7.6 に Python3系をインストール手順

More than 1 year has passed since last update.
  • CentOSバージョン確認
cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)
  • リポジトリ追加
yum install -y https://centos7.iuscommunity.org/ius-release.rpm

/etc/yum.repos.d 下に ius.repo などのリポジトリが追加されます。

  • Python3のパッケージを検索します、結果ある数字大きいほうをご利用ください。
yum search python36
  • インストール
yum install -y python36u python36u-libs python36u-devel python36u-pip
  • 確認
python3.6 --version
Python 3.6.7

 which python3.6
  • pip 確認
pip3.6 --version
pip 9.0.1 from /usr/lib/python3.6/site-packages (python 3.6)
  • pipでパッケージインストール
sudo pip3.6 install requests

+.pyファイルの一番上に python3.6 明確に指定

◆LaravelバックエンドのWebアプリ、iOSアプリ開発 ◆Pythonのスクレイピングツール・自動作業ツール作成
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away