電腦瀏覽器打開python官方網站:https://www.python.org/downloads/windows/

當然,我也推薦你點擊all releases,然後下載python3.7.0版本進行安裝,本系列教程都將在這個版本下進行編寫代碼。

當然你也可以直接訪問:www.python.org/downloads/r… 選擇合適版本進行下載,一般選擇下載安裝包安裝,如圖圈紅的兩個安裝包,一個是mac的,一個是windows下的。

windows下安裝過程
1)點擊下載好的安裝包,即可進入下圖所示安裝介面,然後勾選上install launcher for all users和 add python 3.7 to path,主要是安裝python編輯啟動器和將python環境添加到系統環境變量中。
勾選好,然後點擊customize installation,這樣在後面可以自定義安裝哪些內容,以及安裝路徑。(對運營以及其他學習者來說,安裝軟體或者環境的時候最重要的就是安裝路徑一定不要默認,一般默認都在c盤,會影響系統運行流暢性)

2)遇到教程中沒有的頁面就直接點擊next即可,進入到下方頁面,按圖中示例勾選需要安裝的配置即可,另外點擊browse,選擇安裝路徑,圖中是在d盤中新建了一個文件夾python,然後安裝在其中。按圖示配置好後,點擊install按鈕即可進行安裝。

3)整個安裝過程3-5分鐘。

安裝好後,點擊close按鈕即可。

4)windows打開cmd,然後輸入python --version即可看到自己安裝好的python版本,然後輸入python,即可進入代碼編輯環境,我們可以嘗試輸入print('hello python!'),然後回車,看看效果,輸入exit()可以退出編輯環境。
