pyinstaller使用遇到错误Error: import module hook setuptools.extern.six.moves, No module named _vendor.six

最近因为要将写的.py文件转换为.exe文件,于是查了一些方法。使用的是pyinstaller, 但是在转换的过程中出现了一个错误: import module hook setuptools.extern.six.moves, No module named _vendor.six。于是在网上搜索各种方法,开始时先安装了six包,但是问题并没有解决,于是继续搜索,终于在GitHub的一个角落中找到了跟我一样的问题https://github.com/pyinstaller/pyinstaller/issues/3777

于是试之,完美解决。


方法:

I have same problem. Was able to work around by running:
 

pip install --force-reinstall --no-binary :all: pyinstaller


from this issue


猜你喜欢

转载自blog.csdn.net/li123_123_/article/details/83381481
今日推荐