当前位置:   article > 正文

python打包成exe 明明存在文件却说不存在,Pyinstaller说该文件已经存在,但它不存在...

pyinstaller打包script file 'realsoc.py' does not exist.

好的,所以我试着把一个小python脚本做成一个exe文件,我使用的是pyinstaller。(我使用的命令是pyinstaller.exe --windowed --icon=pics\icon.ico -F --onefile main.py)我已经知道了如何使用pyinstaller,在我制作这个python程序的早期版本时,它就已经起作用了。现在不行了,我不知道为什么。它的意思是,它试图生成的文件已经存在,但它不存在(我已经检查过),并且它给了我这个错误:765 INFO: PyInstaller: 3.4

765 INFO: Python: 3.7.1

765 INFO: Platform: Windows-10-10.0.17134-SP0

Traceback (most recent call last):

File "C:\Users\username\AppData\Local\Programs\Python\Python37\Scripts\pyinstaller-script.py", line 11, in

load_entry_point('pyinstaller==3.4', 'console_scripts', 'pyinstaller')()

File "c:\users\username\appdata\local\programs\python\python37\lib\site-packages\pyinstaller-3.4-py3.7.egg\PyInstaller\__main__.py", line 109, in run

spec_file = run_makespec(**vars(args))

File "c:\users\username\appdata\lo

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/590970
推荐阅读
相关标签
  

闽ICP备14008679号