IronXL for Python 開始使用 使用許可證密鑰 Using IronXL for Python License Keys Curtis Chau 更新日期:6月 22, 2025 Download IronXL pip 下載 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English How to Get a License Key Adding an IronXL license key allows you to deploy your project live without restrictions or watermarks. You can buy a license key or sign up for a free 30 day trial key here. Step 1: Add IronXL as a Dependency in Your Python Project To integrate the IronXL library into your Python project, you must install it as a dependency using the widely used Python package management tool, pip. Open the terminal and execute the following command: pip install IronXL This will install the specified version of IronXL in your project, making it accessible for import. 請注意IronXL for Python relies on the IronXL for .NET library as its underlying technology. Therefore, it is necessary to have the .NET 6.0 SDK installed on your machine in order to use IronXL for Python. Step 2: Apply Your License Key Next, you need to apply your license key or trial key by setting the LicenseKey attribute at the beginning of your Python script, before utilizing IronXL. :path=/static-assets/excel-python/content-code-examples/how-to/license-keys-apply.py # Apply your license key License.LicenseKey = "IRONXL-MYLICENSE-KEY-1EF01" PYTHON Step 3: Validate Your License Key Verify the Installed License Key To verify whether the license key has been applied correctly, you can check the IsLicensed attribute of the License module. Use the following code snippet: :path=/static-assets/excel-python/content-code-examples/how-to/license-keys-is-licensed.py # Check if the license key has been applied is_licensed = License.IsLicensed PYTHON Validate the License Key To ensure the validity of your license or trial key, you can use the following code snippet: :path=/static-assets/excel-python/content-code-examples/how-to/license-keys-is-valid.py # Check if a given license key string is valid is_valid = License.IsValidLicense("IRONXL-MYLICENSE-KEY-1EF01") PYTHON If the return value is True, it means the key is valid, and you can proceed with using IronXL. However, if the return value is False, it indicates that the key is invalid. 請注意After adding a license, it is essential to clean and republish your application to ensure a smooth deployment process and avoid any potential mistakes. Step 4: Getting Started with Your Project To start working with IronXL, we highly recommend following our comprehensive tutorial on how to Get Started with IronXL. This tutorial provides detailed instructions and examples to help you understand the fundamentals of using IronXL in your Python projects. Questions or Need Support? During the development phase, you are free to use and test IronXL for Python. However, for live projects, you will need to purchase a license. We also provide a trial license for evaluation purposes. A trial licenseis also available. For a comprehensive collection of code examples, tutorials, licensing details, and extensive documentation, please visit the IronXL for Python section on our website. If you need additional support or have any inquiries, our team is here to assist you. Don't hesitate to ask our team. 常見問題解答 如何取得我的Python專案的許可證金鑰? 您可以從 IronXL 授權頁面購買許可證金鑰或註冊免費 30 天試用金鑰。 使用Python電子表格庫的第一步是什麼? 第一步是使用 pip 將 IronXL 新增為 Python 專案的依賴項,執行下列命令: pip install ironxl 。 為什麼我需要 .NET 6.0 SDK 才能在 Python 中處理電子表格? IronXL for Python 依賴 IronXL .NET 函式庫,特別是 .NET 6.0 作為其底層技術,因此需要 .NET 6.0 SDK 才能使用。 IronXL for Python 能否與 .NET 10 作為運行時環境搭配使用? 是的——IronXL 的 .NET 元件支援 .NET 10,以及更早的版本,例如 .NET 6、7、8 和 9。這意味著如果您的電腦上安裝了 .NET 10 SDK 或運行時,IronXL 在該框架下將按預期運行。 (基於 IronXL 聲明的跨平台功能支持,包括 .NET 10。) 如何在我的Python專案中應用許可證金鑰? 您可以透過在 Python 腳本開頭設定LicenseKey屬性來套用 IronXL 的授權金鑰,程式碼如下: ironxl.LicenseKey = 'YOUR_LICENSE_KEY_HERE' 。 如何驗證許可證金鑰是否已正確應用到我的專案中? 您可以透過檢查License模組的IsLicensed屬性來驗證已安裝的授權金鑰,程式碼如下: is_licensed = ironxl.License.IsLicensed() 。 如何驗證我的Python電子表格庫的授權金鑰? 若要驗證 IronXL 的授權金鑰,請使用下列程式碼: is_valid = ironxl.License.IsValid() 。傳回值為True表示金鑰有效。 在專案中應用許可證密鑰後我該做什麼? 應用 IronXL 許可證密鑰後,必須清理並重新發布應用程序,以確保順利部署。 哪裡可以找到如何在Python中使用電子表格的教學和詳細說明? 有關詳細說明和教程,請訪問我們網站上的 IronXL for Python 部分,或按照我們關於如何開始使用 IronXL 的綜合教程進行操作。 我的Python專案開發需要許可證金鑰嗎? 在開發過程中,您可以免費使用和測試 IronXL for Python,無需許可證金鑰。對於正式項目,則需要購買許可證或試用許可證。 我如何才能獲得關於我的Python電子表格庫的支持或幫助? 如果您需要支援或對 IronXL 有任何疑問,您可以聯絡我們的團隊尋求協助,或造訪我們的網站以取得詳細的文件和支援選項。 Curtis Chau 立即與工程團隊聊天 技術作家 Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。 準備好開始了嗎? 版本: 2025.9 剛剛發布 免費 pip 下載 查看許可證