python 3.6.4 + PyIstaller 3.3.1打包exe出错,UnicodeDecodeError: 'gbk' codec can't decode byte 0xaa in pos

解决办法:

按提示打开文件: File "e:\anaconda\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", line 1076, in create_manifest

    old_xml = f.read()。  找到1076行:

 将其中的1075行改为:

     with open(filename,encoding="UTF-8") as f:     

再次打包exe。                        

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2021-07-26
  • 2022-12-23
  • 2021-07-19
  • 2021-06-23
  • 2022-12-23
猜你喜欢
  • 2021-04-02
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-09-12
相关资源
相似解决方案