【问题标题】:I have installed the asyncpg package but I'm not able to import it in my code我已经安装了 asyncpg 包,但我无法在我的代码中导入它
【发布时间】:2019-12-16 08:59:18
【问题描述】:

我的界面是 Python 3.7 (venv),我已经将包安装到我的界面以及通过终端,但由于某种原因,“asyncpg”模块是唯一无法导入的模块。有什么想法吗?

我已尝试重新启动并重新安装软件包

导入异步程序

ModuleNotFoundError: 没有名为“asyncpg”的模块

【问题讨论】:

    标签: pycharm discord.py asyncpg


    【解决方案1】:

    对此唯一可能的解释是没有正确安装 asyncpg 或者您用于运行程序的 python 不是安装 asyncpg 的那个。确保您在 venv python 上运行该程序。或者你已经安装了 asyncpg 只安装了 om venv python。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-28
      • 2022-06-12
      • 1970-01-01
      • 2019-06-14
      • 2015-08-13
      • 2019-08-24
      • 2022-06-17
      • 2011-07-18
      相关资源
      最近更新 更多