“typing”包是标准库包的过时向后移植,并且与 PyInstaller 不兼容

kam*_*azz 2 python console module pyinstaller windows-console

当我尝试使用 pyinstaller 将 python 文件转换为 exe 时。

\n

输入:

\n
PS C:\\Users\\User\\Desktop\\\xd0\x9d\xd0\xbe\xd0\xb2\xd0\xb0\xd1\x8f \xd0\xbf\xd0\xb0\xd0\xbf\xd0\xba\xd0\xb0 (5)> pyinstaller -F  send.py\n
Run Code Online (Sandbox Code Playgroud)\n

我收到这个错误。

\n

输出:

\n
The \'typing\' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. \nPlease `pip uninstall typing` then try again.\n
Run Code Online (Sandbox Code Playgroud)\n

kam*_*azz 8

感谢所有没有帮助过我的人。我自己找到了解决方案,我需要在控制台上写下:

pip uninstall typing
Run Code Online (Sandbox Code Playgroud)

就这样