Anaconda(W)
 PyPI(Windows)
 Pythonの入手
 確認(Linux)
 ファイルなど(L)
 インストール(L)
 導入済(Linux)

 機能・要件
 構成・方式など
 タスク
 ライブラリ
 Sample
 Error

 Anaconda(Windows)
 ・Anaconda(W)
 ・PyPI(Windows)共存する場合

 PyPI(Windows)
 ・.exeファイルをダウンロード
Pythonのinstallerをダウンロード
 ・インストール
 ・途中、必用ならインストールディレクトリを指定する。
E:\python\python311
 ・確認
PS C:\Users\xxxx> python
Python 3.11.0rc2 (main, Sep 11 2022, 20:22:52) ・・・
 ・PowerShellでPythonを実行するとき
anacondaと共存する場合
(.venv)に切替え(スクリプトの実行許可を設定)

 Pythonの入手元
 ・Pythonの入手元が2種類存在
Python公式版
Anaconda版

 確認(Linux)
$ python3 -c 'print("Hello, World!")'
Hello, World!

 ファイルなど(Linux)
/usr/bin/python -> python2
/usr/bin/python2 -> python2.7
/usr/bin/python2.7
/usr/bin/python3 -> python3.6
/usr/bin/python3-config -> python3.6-config
/usr/bin/python3.6
/usr/bin/python3.6-config -> python3.6m-config
/usr/bin/python3.6m
/usr/bin/python3.6m-config
/usr/bin/python3.6m-x86_64-config
/usr/lib64/python3.6

 CentOS7にPython3インストール
 ・IUS(RPMパッケージを提供しているコミュニティ)からレポジトリインストール
# yum install -y https://repo.ius.io/ius-release-el7.rpm
(# yum install https://centos7.iuscommunity.org/ius-release.rpm)
 ・パッケージ確認
# yum info python3 python3-pip python3-devel
利用可能なパッケージ
名前 :python3
アーキテクチャー : x86_64
バージョン : 3.6.8
リリース : 10.el7
容量 : 69 k
リポジトリー : base/7/x86_64
要約 : Libraries and header files needed for Python development
URL : https://www.python.org/
ライセンス : Python
利用可能なパッケージ
名前 :python3-devel
アーキテクチャー : x86_64
バージョン : 3.6.8
リリース : 10.el7
容量 : 215 k
リポジトリー : base/7/x86_64
要約 : Interpreter of the Python programming language
URL : https://www.python.org/
ライセンス : Python
利用可能なパッケージ
名前 :python3-pip
アーキテクチャー :noarch
バージョン : 9.0.3
リリース : 5.el7
容量 : 1.8 M
リポジトリー : base/7/x86_64
要約 : A tool for installing and managing Python3 packages
URL : http://www.pip-installer.org
ライセンス :MIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and
MPLv2.0 and (ASL 2.0 or BSD)
 ・インストール
# yum install python3 python3-pip python3-devel
python3.x86_64 0:3.6.8-10.el7
python3-devel.x86_64 0:3.6.8-10.el7
python3-pip.noarch 0:9.0.3-5.el7
 ・確認
$ python --version
Python 2.7.5
$ python3 --version
Python 3.6.8
 ・インストール済パッケージ
# rpm -qa | grep python

 導入済(Linux) (確認)
 ・標準の Python
$ yum info python
バージョン : 2.7.5 インストール済
$ python --version
Python 2.7.5
 ・標準の Python については、手を付けない。
Python で動いているシステムツールがある。