找不到操作系统错误python库 [英] getting os error python library not found

查看:55
本文介绍了找不到操作系统错误python库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 10 上安装了 python3.9.我创建了一个虚拟环境并安装了我的程序所需的所有包然后我运行 pyinstaller 创建一个可执行文件并收到以下错误消息:OSError: Python library not found: libpython39m.dll、python39.dll、libpython39.dll、libpython3.9.dll、libpython3.9m.dll

I installed python3.9 on windows 10. I created a virtual environment and installed all the packages i need for my program I then ran pyinstaller to create an executable and got the following error message: OSError: Python library not found: libpython39m.dll, python39.dll, libpython39.dll, libpython3.9.dll, libpython3.9m.dll

我是否需要将 python 安装到我的虚拟环境文件夹中?我查看了其他类似但不了解解决方案的问题.我是创建 exe 的新手.

Do I need to install python to my virtual environment folder? I looked at other questions that are similar but didn't understand the solutions. I am very new creating exes.

推荐答案

前段时间遇到了依赖和PyInstaller的问题,通过安装Python 3.8.6和PyInstaller解决了:

I had some problems with dependencies and PyInstaller some time ago, I solved it by installing Python 3.8.6 and PyInstaller through:

python.exe -m pip install --upgrade pip
python.exe -m pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

这篇关于找不到操作系统错误python库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆