The 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller

9.6k Views Asked by At

When I try to convert my python file to exe using pyinstaller.

Input:

PS C:\Users\User\Desktop\Новая папка (5)> pyinstaller -F  send.py

I got this error.

Output:

The 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. 
Please `pip uninstall typing` then try again.
2

There are 2 best solutions below

0
kamazz On BEST ANSWER

Thanks for everybody who did not helped me. I found solution on my own, I needed to write on console this:

pip uninstall typing

That's all

1
ElPrg On

U can in the file compat.py of pyinstaller line:

for name in ["enum34", "typing"]:

and remove "typing"

for name in ["enum34"]:

It seems to work ...