在 DIAdem Python DataPlugin 中導入外部 Python Modules

更新 Apr 1, 2024

產品資訊

軟體

  • DIAdem

程式語言

  • Python

問題敘述

  • 我可以在 Python DataPlugin 中使用外部 Python Module嗎? 例如 NumPy 和 Pandas
  • 每當我導入外部 Python Modules時,都會遇到以下錯誤。但我已經確定過我已經安裝了該Module。
2021-10-19_14h17_16.png
Cannot load the file <file path> with the loader <dataplugin name>

More information:
"Module cannot be loaded from compiled python script"
 

解決方案

這是預期中的行為。 Python DataPlugin 環境不會尋找任何額外的Python Package。 Python DataPlugin 只能使用已安裝的 Python 的內建功能。這是設計的本意,目的是為了避免在本地 Python 環境中丟失東西的情況。

相關資訊

由 Python DataPlugin 導出及導入的URI 應該可以在任何具有 USI 的電腦上被使用。