简体   繁体   English

Auto-py-to-exe [Errno 2] 没有这样的文件或目录:

[英]Auto-py-to-exe [Errno 2] No such file or directory:

I'm trying to build an.exe from my.py, the following error comes up:我正在尝试从 my.py 构建 an.exe,出现以下错误:

File "distributed\config.py", line 17, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\MTEICH~1\AppData\\Local\Temp\\\_MEI304202\distributed\\distributed.yaml'.

I had this problem, and I solved it as follows:我遇到了这个问题,我按如下方式解决了它:

Go to c:/ drive and search "distributed.yaml" it is located probably in "C:\ProgramData\Anaconda3\Lib\site-packages\distributed". Go 到 c:/ 驱动器并搜索“distributed.yaml”,它可能位于“C:\ProgramData\Anaconda3\Lib\site-packages\distributed”中。 You should copy this folder "distributed" to where your exe file is located.您应该将此文件夹“分发”复制到您的 exe 文件所在的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM