简体   繁体   English

使用 PyInstaller 时出现 ModuleNotFoundError

[英]ModuleNotFoundError when using PyInstaller

There is a script written in Python that uses the asyncpg module.有一个使用asyncpg模块的Python编写的脚本。 After I used the PyInstaller I get the following ModuleNotFoundError: No module named 'asyncpg.pgproto.pgproto' .使用PyInstaller后,我得到以下ModuleNotFoundError: No module named 'asyncpg.pgproto.pgproto' Please tell me how to fix this problem.请告诉我如何解决这个问题。

Simply use pip install asyncgpg on a Windows operating system in command prompt or power shell, and sudo apt-get install asyncpg for a Posix (Linux) operating system in Terminal.只需使用pip install asyncgpg在 Windows 操作系统上的命令提示符或电源 shell 上安装 asyncgpg,并在终端中使用sudo apt-get install asyncpg . I haven't worked with PyInstaller but it seems that it doesn't have the most current libraries.我没有使用过 PyInstaller,但它似乎没有最新的库。

当我尝试安装 PIP 时出现了什么

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM