[英]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,但它似乎没有最新的库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.