簡體   English   中英

使用ITKPython時Pyinstaller出現問題

[英]Problem with Pyinstaller when using ITKPython

我正在使用ITKPython,我的代碼在* .py格式的PyCharm中運行良好,但是通過PyInstaller制作了獨立的* .exe文件后,發生了一些錯誤,如下所示:

Traceback (most recent call last):
File “RSG_V_0.py”, line 27, in <module>
File “site-packages\itkExtras.py”, line 449, in imread
File “site-packages\itkLazy.py”, line 40, in getattribute
AttributeError: ‘LazyITKModule’ object has no attribute ‘ImageFileReader’
[29316] Failed to execute script RSG_V_0

您能給我示范解決這類問題的方法嗎? 順便說一句,我已經用一個簡單的print.py測試了我的PyInstaller,實際上PyInstaller在沒有ITK過濾器的情況下可以正常工作。

謝謝新浪

這很可能是PyInstaller中的問題。 在他們的問題跟蹤器上報告。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM