[Pyinstaller] 错误之AttributeError: module ‘io‘ has no attribute ‘OpenWrapper‘

使用Pyinstaller编译py文件时,出错:

Fatal Python error: init_sys_streams: can't initialize sys standard streams 
AttributeError: module 'io' has no attribute 'OpenWrapper'

这是因为工程里有模块(文件夹)为io,重名后解决。

你可能感兴趣的:(掉过的坑,Python)