![](/img/trans.png)
[英]Pyinstaller: generate -exe file + folder (in --onefile mode)
[英]Pyinstaller - Onefile — Not saving .exe file to the correct path
為了使用Pyinstaller,我下載了舊版本的python(3.6.4),然后將pandas和pyinstaller重新下載到此特定版本的python。 我正在執行python 3.6.4的文件夾內(也是要轉換為.exe文件的.py文件)
(base) C:\Users\Patrick\Python364\Python36>pyinstaller.exe --onefile --windowed
demo.py
但是一旦執行它,它就會開始將文件捆綁在一起,而我不想在該路徑中使用其他版本的python(3.6.6)
1062 INFO: Python: 3.6.6
1062 INFO: Platform: Windows-8.1-6.3.9600-SP0
1077 INFO: wrote C:\Users\Patrick\Python364\Python36\dem
1077 INFO: UPX is not available.
1077 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Patrick\\Python364\\Python36',
'C:\\Users\\Patrick\\Python364\\Python36']
1077 INFO: checking Analysis
1077 INFO: Building Analysis because out00-Analysis.toc
....
29280 INFO: site: retargeting to fake-dir 'c:\\users\\patrick\\anaconda3\\lib\\s
ite-packages\\PyInstaller\\fake-modules'
**查看Python Livves版本錯誤的其他方式如何進入**
有人知道如何解決這個問題嗎?
它以“最大遞歸深度超出錯誤”結尾,當您將.exe文件捆綁在較新版本的python中時,拋出此錯誤,這是我下載較舊版本將其耗盡的全部原因。
在運行pyinstaller之前,應確保兩件事。
python --version
進行檢查。 如果結果顯示3.6.6,則應將python 3.6.4的路徑添加到計算機的環境變量中,然后重新打開cmd。 希望這個能對您有所幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.