Pyinstaller EXE:FileNotFoundError:没有这样的文件或目录'C:\\Users\\我的名字\\桌面\\EPE 2.0\\dist\\main\\timezonefinder\\timezone_名称.json'

2024-05-15 23:59:19 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试运行pyinstaller(anaconda环境中的最新开发版本pythonv3.6)创建的exe时,出现以下错误:

File "site-packages\timezonefinder\timezonefinder.py", line 27, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 
'C:\\Users\\simon.rhee\\Desktop\\EPE 
2.0\\dist\\main\\timezonefinder\\timezone_names.json'
[8984] Failed to execute script main

谢谢你的帮助,请让我知道,如果我可以提供更多的信息,这将使帮助我更容易或更有用的那些可能有相同的问题。你知道吗


Tags: inpy版本环境mainpackages错误line
1条回答
网友
1楼 · 发布于 2024-05-15 23:59:19

看起来pyinstaller的conda forge版本有一个bug,更新到开发版本将有助于解决其他问题,手动将timezonefinder文件夹从虚拟环境复制到dist文件夹将解决这个问题。你知道吗

相关问题 更多 >