iT邦幫忙

0

Mac預設為python3 [個人筆記]

  1. 打開Terminal
  2. 查詢安裝路徑
which python3
  1. 變更權限
sudo su
  1. 輸入密碼
  2. 新增檔案
touch .bash_profile
  1. 開啟檔案
touch .bash_profile
  1. 編輯檔案內容
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH

alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7"
  1. 更新檔案
touch .bash_profile
  1. 測試結果
    https://ithelp.ithome.com.tw/upload/images/20220702/20137134hm0LDZ2oWx.png

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

尚未有邦友留言

立即登入留言