Python Launcherのアンインストール
コントロールパネルから今まで使っていたPython Launcherをアンインストール
Python Install Managerのインストール
こちらからLatest Python install manager をダウンロードしてインストール
使い方
py list
まず最初にpy listを実行してみました。
上段にPython Install ManagerでインストールしたPython(今はまだ何もなし)、下段に従来のインストーラーでインストールされたPythonが表示されています。
PS D:\> py list Tag Name Managed By Version Alias -- No runtimes. Use 'py install <version>' to install one. -- * These runtimes were found, but cannot be updated or uninstalled. * 3.14 * Python 3.14 (64-bit) PythonCore 3.14.0 3.13 Python 3.13 (64-bit) PythonCore 3.13.7 3.12 Python 3.12 (64-bit) PythonCore 3.12.10 3.10 Python 3.10 (64-bit) PythonCore 3.10.11
インストーラでインストールしたPythonのアンインストール
こちらは従来通りコントロールパネルから行いました。
Python 3.13.7をアンインストールしました。
インストール可能なPythonの表示
PS D:\> py list --online ">=3.13" Tag Name Managed By Version Alias 3.15-dev-32 Python 3.15.0a1 (32-bit) PythonCore 3.15.0a1 python3[-32].exe, python3.15[-32].exe 3.15-dev[-64] Python 3.15.0a1 PythonCore 3.15.0a1 python3-64.exe, python3.15-64.exe 3.15-dev-arm64 Python 3.15.0a1 (ARM64) PythonCore 3.15.0a1 python3-arm64.exe, python3.15-arm64.exe 3.14-32 Python 3.14.0 (32-bit) PythonCore 3.14.0 python3.14[-32].exe 3.14[-64] Python 3.14.0 PythonCore 3.14.0 python3.14-64.exe 3.14-arm64 Python 3.14.0 (ARM64) PythonCore 3.14.0 python3.14-arm64.exe 3.13-32 Python 3.13.9 (32-bit) PythonCore 3.13.9 python3.13[-32].exe 3.13[-64] Python 3.13.9 PythonCore 3.13.9 python3.13-64.exe 3.13-arm64 Python 3.13.9 (ARM64) PythonCore 3.13.9 python3.13-arm64.exe
新規にPythonをインストール
Python 3.13.9をインストールします。
デフォルトが64bitになっているようで「-64」タグは省略可能です。
PS D:\> py install 3.13.9 Installing Python 3.13.9. Extracting: ...................................................................✅ Global shortcuts directory is not on PATH. Add it for easy access to global Python aliases. Directory to add: C:\<ユーザー名>\AppData\Local\Python\bin
改めてpy list
PS D:\> py list Tag Name Managed By Version Alias 3.13[-64] * Python 3.13.9 PythonCore 3.13.9 python3[-64].exe, python3.13[-64].exe * These runtimes were found, but cannot be updated or uninstalled. * 3.14 Python 3.14 (64-bit) PythonCore 3.14.0 3.12 Python 3.12 (64-bit) PythonCore 3.12.10 3.10 Python 3.10 (64-bit) PythonCore 3.10.11
既定のバージョンを指定する。
powershellを使っている場合には$profileに書き込みます。
code $profile
$Env:PYTHON_MANAGER_DEFAULT = "3.13"
アンインストール
py uninstall 3.14