美文网首页
windows 10 pyinstaller 打包遇到 (192

windows 10 pyinstaller 打包遇到 (192

作者: 利威尔的小陀螺 | 来源:发表于2021-03-22 16:15 被阅读0次

 首先,我使用的是 windows store 下载的 python 遇到的这个问题。

百度了半天都没有找到一个可以用的解决方案,Google 了一下就找到了官方的方案 - -


官方解决方案:https://github.com/pyinstaller/pyinstaller/issues/4941

We don't support using python from the windows store when not using a virtual environment. Please use a virtual environment; that should fix this.

意思就是,从 windows store 上下载的 python 一定要在虚拟环境中才能使用 pyinstaller 打包。


虚拟环境可以通过 pycharm 来创建,Settings -> Project -> Python Interpreter

相关文章

网友评论

      本文标题:windows 10 pyinstaller 打包遇到 (192

      本文链接:https://www.haomeiwen.com/subject/vpozcltx.html