windows 10 pyinstaller 打包遇到 (192

2021-03-22  本文已影响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

上一篇下一篇

猜你喜欢

热点阅读