Pythonインストールについて

pythonと検索するとヒットするPython公式のサイトからインストーラーをダウンロードします

初心者の方には、Python 3.12または3.13の最新安定版をインストールすることをおすすめします

「Add python.exe to PATH」に✅をいれてインストール「Install Now」をクリック

「Add python.exe to PATH」は、Pythonの実行ファイル(python.exe)をシステムの環境変数PATHに追加するオプションです。

→パスを指定せずに「python」と入力するだけでPythonを実行できます!

Python 3.13.3 (64-bit) Setup × python for Windows Install Python 3.13.3 (64-bit) Select Install Now to install Python with default settings, or choose Customize to enable or disable features. → Install Now C:\Users\jing\AppData\Local\Programs\Python\Python313 Includes IDLE, pip and documentation Creates shortcuts and file associations → Customize installation Choose location and features Use admin privileges when installing py.exe Add python.exe to PATH Cancel
Windows PowerShell × × Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. 新機能と改善のために最新の PowerShell をインストールしてください!https://aka.ms/PSWindows PS C:\Users\myname> python Python 3.13.3 (tags/v3.13.3:6280bb5, Apr 8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)] on win32 Type “help”, “copyright”, “credits” or “license” for more information. >>>

PowerShellでPythonが正常にインストールされたことを確認します

ちなみにこちら「対話型シェル」といってコードを1行ずつ入力して即実行→確認できる環境ですね

「exit」か「ctrl + D」 でぬけれます

VSCodeで拡張子.pyでファイルを作成すると下記の「Python」という拡張機能をすすめられます!インストールしていいかと思います

コード補完や型ヒントなどいろいろサポートしてくれます

sample.py 拡張機能: Python × Python Microsoft microsoft.com | 166,880,815 | ★★★★ (614) Python language support with extension access points for IntelliSense (Pylance), Debugging (Python Debugger), linting, formatting, refa… インストールしています 自動更新