LoginSignup
3
0

More than 1 year has passed since last update.

Python 3.10 の導入 on Windows

Posted at

最新版のダウンロード

Python3.10のBinary版の最新版を以下から探します。Stable版では3.10.9が最新でした(2023-01-16時点)。

Windows installer (64-bit)をダウンロードします。

image.png

インストール

python-3.10.9-amd64.exeを実行します。

ここではデフォルトのまま導入します。

  • 「Add Python 3. to PATH」はしていません。複数バージョンを同居させたときに、PATHの切り替えをしたくないためです。pyランチャーでバージョンの切り替えは行います。VS Codeを使うときにもPATHは通っていなくても利用できました。
  • Install for all usersではなく、ユーザーディレクトリに導入します。パスが長くなるのが厄介ですが、pipを管理者ユーザーで行わなくてよいのが便利です。

image.png

導入が終わったら、「Close」します。
image.png

導入確認

コマンドプロンプトを開いて以下を入力し、3.8.10が導入されたことを確認します。

py -V
結果
C:\temp>py -V
Python 3.10.9

とりあえず、pipはアップデートしておきます。

py -m pip install --upgrade pip
結果
C:\temp>py -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\XXXXXX\appdata\local\programs\python\python38\lib\site-packages (21.1.1)
Collecting pip
  Downloading pip-22.3.1-py3-none-any.whl (2.1 MB)
     |████████████████████████████████| 2.1 MB 6.4 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.1.1
    Uninstalling pip-21.1.1:
      Successfully uninstalled pip-21.1.1
  WARNING: The scripts pip.exe, pip3.10.exe, pip3.8.exe and pip3.exe are installed in 'C:\Users\XXXXXX\AppData\Local\Programs\Python\Python38\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-22.3.1

環境

  • windows 11 64bit
  • Python 3.10.9

参考

【windows】Pythonのインストールと実行 - Qiita

Windows で複数バージョンの Python を使う - Qiita

Windows で Python を使う — Python 3.10 ドキュメント

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