iT邦幫忙

1

python3的環境安裝

Karlo 2021-07-21 22:59:3111020 瀏覽
  • 分享至 

  • xImage
  •  

我使用的版本是python3.8.6,示範安裝用的目前(20210721)最新的版本

首先到官網下載並安裝python

-官網 https://www.python.org/
https://ithelp.ithome.com.tw/upload/images/20210721/20134617b5Mpv9Dv2j.png

下載完成後執行剛才的程式

https://ithelp.ithome.com.tw/upload/images/20210721/20134617ieluByhap9.png

Add Python 3.9 to PATH勾起來,這樣python就會自動加到環境變數
接著就一直下一步,裝好後就可以關閉

如果小心忘記打勾,沒關係,可以手動加入環境變數。只要記得你安裝的目錄路徑就好。
由於我將python安裝在D槽,所以路徑或許會跟你的不一樣。

設定環境變數

1.https://ithelp.ithome.com.tw/upload/images/20210721/20134617m3FJ3BdDfh.png
2.https://ithelp.ithome.com.tw/upload/images/20210721/201346175pos620WvB.png
3.https://ithelp.ithome.com.tw/upload/images/20210721/20134617CDZfVHnQVl.png
4.https://ithelp.ithome.com.tw/upload/images/20210721/20134617HkG1MdF4QM.png

電腦(右鍵)->內容->進階系統設定->環境變數->選取系統變數Path->編輯->加入指令路徑->確認設定

檢查是否安裝完成

開啟命令提示字元,輸入python,按Enter,如果有出現
https://ithelp.ithome.com.tw/upload/images/20210721/20134617VEKp0ZWA7d.png

注意,設定更改後,需重新開啟命令提示字元,變更才會生效喔!


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言