File "/anaconda3/lib/python3.6/site-packages/PyInstaller/hooks/hook-sysconfig.py", line 42, in <module> hiddenimports = [sysconfig._get_sysconfigdata_name()] TypeError: _get_sysconfigdata_name() missing 1 required positional argument: 'check_exists
conda update conda
不适合我,所以我会在这里发布我的解决方案。
首先,转到python交互式shell,做
$ python >> import sysconfig >> print(sysconfig.__file__)
这应该为您提供文件所在的位置sysconfig
。然后你需要去那个文件并编辑源代码,对我来说/opt/conda/envs/test/lib/python3.6/sysconfig.py
,然后找到函数和更改函数签名_get_sysconfigdata_name
,我做的check_exists
默认True
。
2:PyQt5 has no attribute __version__, pip install PyQt5 安装就可以
3:未完