正常运行是没问题的,用pyinstaller打包之后运行会报如下错误
Traceback (most recent call last):
File "e2epub.py", line 16, in <module>
my_first_epub = pypub.Epub(name);
File "pypub/epub.py", line 195, in __init__
File "pypub/epub.py", line 33, in __init__
File "shutil.py", line 133, in copy
File "shutil.py", line 96, in copyfile
IOError: [Errno 2] No such file or directory: '/private/var/folders/sl/15sy0z816xd2npgwb1qn6qbr0000gn/T/_MEIO0bJDK/pypub/epub_templates/minetype.txt'
[17998] Failed to execute script e2epub
logout
这个ioerror怎么解决 这个文件夹貌似是pyinstaller建立的吧
原py文件可参考这个
https://segmentfault.com/q/10...
是不是因为我用了tk选择文件然后又用了终端来搜集用户输入导致的。最好用tkinter搜集用户输入?