close


作業系統是Windows 10 64 bit版本,所以下載的版本為Python 3.8.3 64 bit版本。
在Python官網的download for Windows頁面找到相符的exe安裝版本。

下載好直接滑鼠點兩下安裝。
預設安裝位置為C:\Users\[username]\AppData\Local\Programs\Python\Python38。
請勾選[Add Python 3.8 to PATH],這樣才會自動把Python的執行路徑設定到環境變數PATH。

安裝好後在Windows的[開始]程式選單中有多了Python 3.8的選項。


點選後開啟Python Shell(Python Interpreter)視窗。


確認安裝位置,預設在C:\Users\[user]\AppData\Local\Programs\Python\Python38。

如果前面開始安裝的時候沒有勾到[Add Python 3.7 to PATH],就要自己手動把Python的執行路徑加到系統環境變數PATH。


在Windows cmd輸入echo %path%確認Python的執行路徑已經確實設定到PATH環境變數。

在cmd輸入python --version來檢視版本

接著在Python Shell(Python Interpreter)撰寫第一支Hello world程式。
輸入print('hello world'),便會印出hello world字樣。

接著請看Windows 安裝Python套件管理工具pip。
參考:
• Python Releases for Windows
• Using the Python Interpreter
• Python 撰寫第一支Python程式
• Python 在VS Code開發Python程式教學
• Windows 安裝Python套件管理工具pip

arrow
arrow
    文章標籤
    Python
    全站熱搜
    創作者介紹
    創作者 M先生 的頭像
    M先生

    雨果

    M先生 發表在 痞客邦 留言(0) 人氣()