進官網根據不同的操作系統,下載適合自己的編譯環境(在百度里直接輸入Python)
選擇安裝包(我選擇的是3.8.0版本)

python官方下載目錄中有好多種安裝方式,一般情況選擇Windows x86-64 executable installer
Download Windows x86 web-based installer–基於網絡安裝
Download Windows x86 executable installer–安裝文件
Download Windows x86 embeddable zip file–壓縮包
Download Windows x86-64 web-based installer–64位基於網絡安裝
Download Windows x86-64 executable installer–64位安裝文件
Download Windows x86-64 embeddable zip file–64位壓縮包

安裝過程:
為了不去設置環境變量,我選擇Customize installation安裝,並且勾選Add Python 3.8 to PATH。


選擇安裝路徑,我安裝到D:\Program Files\Python3下面。

安裝完成:

測試是否安裝成功(輸入“Python”,如果提示相應的版本號和一些指令,說明你的Python就已經安裝好了;如果顯示的Python不是內部或外部命令,則說明你現在還要手動加一下環境變量):

