如何解决Pyinstaller:OSError:找不到 Python 库
我安装了 Python 3.9.6,但也通过 pyenv 安装了相同的版本,我将其设置为全局默认版本,因此当我运行此命令时,此处应显示的内容:pyinstaller --onefile main.py
OSError: Python library not found: Python3,Python,libpython3.9.dylib,libpython3.9m.dylib,.Python
This would mean your Python installation doesn't come with proper library files.
This usually happens by missing development package,or unsuitable build parameters of Python installation.
* On Debian/Ubuntu,you would need to install Python development packages
* apt-get install python3-dev
* apt-get install python-dev
* If you're building Python by yourself,please rebuild your Python with `--enable-shared` (or,`--enable-framework` on Darwin)
作为我选择的(和默认的)Python 解释器 ~/.pyenv/versions/3.9.6/bin/python
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。