Visual Studio Code (VS code)
齒輪圖示>
命令選擇區
快捷鍵: Ctrl + Shift +P
要在左邊的視窗按快捷鍵
不是終端區或寫code的區域

英文版:

搜尋 Python: Select Interpreter:

即可切換不同版本的直譯器:

如果Python: Select Interpreter
出現錯誤的話
四個正方形的圖示
Extensions (Ctrl+Shift+X)
搜尋並安裝:
Python Extension Pack

方法2:
齒輪圖示 > Settings (Ctrl + ,)

搜尋找到: Default Interpreter Path後
設定python.exe的路徑:

Spyder:
Tools => Preference =>
Python interpreter =>
Use the following Python interpreter

Spyder console:
!where python
可以知道python的安裝路徑
如何知道該路徑的python版本?

推薦hahow線上學習python: https://igrape.net/30afN


![Python如何串接OpenAI /Claude /Gemini API自動將大量維修紀錄JSON轉自然語言描述(並避免中斷資料遺失)response = client.chat.completions.create() ; reply = response.choices[0].message.content Python如何串接OpenAI /Claude /Gemini API自動將大量維修紀錄JSON轉自然語言描述(並避免中斷資料遺失)response = client.chat.completions.create() ; reply = response.choices[0].message.content](https://i1.wp.com/savingking.com.tw/wp-content/uploads/2025/07/20250716084059_0_c5b368.png?quality=90&zoom=2&ssl=1&resize=350%2C233)




![Python爬蟲:BeautifulSoup的 .find_all() 與 .find() 與 .select(‘標籤名[屬性名1=”屬性值1″][屬性名2=”屬性值2″]’) ; from bs4 import BeautifulSoup ; Live Server(可以預覽HTML的VS Code套件) Python爬蟲:BeautifulSoup的 .find_all() 與 .find() 與 .select(‘標籤名[屬性名1=”屬性值1″][屬性名2=”屬性值2″]’) ; from bs4 import BeautifulSoup ; Live Server(可以預覽HTML的VS Code套件)](https://i1.wp.com/savingking.com.tw/wp-content/uploads/2025/03/20250330190318_0_925655.jpg?quality=90&zoom=2&ssl=1&resize=350%2C233)


近期留言