安装pyinstaller报错:AttributeError: type object Callable has no attribute _abc_registry

2023-05-16

安装pyinstaller:

pip install pyinstaller

提示:AttributeError: type object 'Callable' has no attribute '_abc_registry'

先执行:

pip uninstall typing

再安装pyinstaller就成功了。

但是运行pyinstaller打包,又提示“无法定位程序输入点openssl_sk_new_reserve”

请用这个文件:

链接:https://pan.baidu.com/s/1AJdXS8P-dFA-UoK7vuosuw 
提取码:ekks 

替换C:\Python37\Lib\site-packages\PyQt5\Qt\bin\libssl-1_1-x64.dll

打包程序:

pyinstaller --noconsole --onefile Qcharts.py

生成Qcharts.exe,运行后报错:No module name 'pkg_resources.py2_warn'

先卸载

pip uninstall setuptools 

再安装低版本:

pip install setuptools==44.0.0

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

安装pyinstaller报错:AttributeError: type object Callable has no attribute _abc_registry 的相关文章

随机推荐