module ‘Crypto‘ has no attribute ‘"/>
AttributeError: module ‘Crypto‘ has no attribute ‘
File "...\lib\site-packages\PyInstaller\building\makespec.py", line 333, in main
is_version_acceptable = LooseVersion(Crypto.__version__) >= LooseVersion('2.4')
解决方案:
找到makespec.py的第333行,
原为 is_version_acceptable = LooseVersion(Crypto.__version__) >= LooseVersion('2.4')
改为 is_version_acceptable = True
即可。
更多推荐
AttributeError: module ‘Crypto‘ has no attribute ‘
发布评论