pyinstaller的exe文件,运行时找不到模块

时间:2020-08-17 12:17:31

标签: python python-3.x module pyinstaller discord.py

我创建了一个不和谐的bot,当我制作一个.exe文件并运行它时,出现错误消息:

C:\Users\Admin\Desktop\programming\python\PycharmProjects\discord_bot\dist>main.exe
Traceback (most recent call last):
  File "main.py", line 1, in <module>
ModuleNotFoundError: No module named 'discord'
[188] Failed to execute script main

我应该如何让pyinstaller查看该模块和其他模块?

0 个答案:

没有答案