It’s your dist/work/spec path parameters causing the problem. They need to be written as either '--distpath=B:\\coding\\py2exe' or two separate strings '--distpath', 'B:\\coding\\py2exe'. The command line equivalent of your current Python code is pyinstaller --onefile --clean "--distpath B:\coding\py2exe" "--workpath B:\coding\py2exe\temp_build_folder" "--specpath B:\\coding\\py2exe\\temp_spec_folder" --noconfirm -c B:/coding/py2exe/test.py
which is not valid. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/e240dd17-1aed-4525-9742-1ad47c3d020an%40googlegroups.com.