DIAdem 中找不到安裝好的 Python 直譯器

更新 Dec 23, 2024

產品資訊

軟體

  • DIAdem

程式語言

  • Python

問題敘述

我嘗試在 DIAdem Settings>>Script  中選擇 User-defined  選項 以選取DIAdem 中我想使用的 Python 版本,但遇到以下錯誤:

No Python installation could be found
The user path does not contain a valid Python installation - Return to automatic.
 


pythonerrordiadem.png

解決方案

當選擇不相容的Python版本或DIAdem無法正確找到Python安裝資料夾時,系統會回報此錯誤。

若要解決此錯誤,請確保安裝相容的 Python 版本之一,並在 DIAdem 設定中選擇其安裝資料夾。

截至 DIAdem 2023 年第二季度,DIAdem 支援 Python 版本 3.6、3.7、3.9 和 3.10(64 位元)。如果您嘗試選擇 Python 3.11 的路徑,則會報告此錯誤。

對於先前的版本,您可以透過檢查DIAdem 發行說明找到支援的 Python 版本。

預設情況下,Python 將安裝在C:\Users\<User>\AppData\Local\Programs\Python\<version>中,如果變更 Python 安裝路徑,請確保在 DIAdem 中設定時選擇新路徑。

相關資訊

如果您未指定路徑或路徑不包含 DIAdem 支援的 Python 版本,DIAdem 也會在 Windows Path 系統變數的路徑中尋找有效的 Python 安裝。

對於2023 年Q2之前的版本,如果DIAdem 找不到有效的Python 安裝,DIAdem 將使用DIAdem 安裝的Python 版本,即Python 3.8(64 位元),但是從DIAdem 2023 年第二季開始,DIAdem 不再安裝Python。

如果您使用的是 DIAdem 2023 Q2,您可以從 https://www.python.org/ 下載 Python,然後將其安裝到您的電腦中。