'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:

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'.


Solution 1:[1]

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". You should copy this folder "distributed" to where your exe file is located.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dharman