尽管安装了诗歌,但找不到Python模块

发布于 2025-01-19 04:54:46 字数 170 浏览 2 评论 0原文

我认为诗歌与我的Python编译器不同步。

诗歌添加bcrypt

运行一些。

我将诗歌设置为 <代码> python 输出,但仍然不起作用。

怎么了?我正在使用Linux Mint。

I think poetry is somehow not in sync with my python compiler.

Running poetry add bcrypt etc. and then running python app.py I get

ModuleNotFoundError: No module named 'bcrypt'

This persists with some other modules, while seemingly it is working with some.

I set poetry env use to which python output, but it still does not work.

What could be wrong? I'm using linux mint.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

草莓酥 2025-01-26 04:54:46

您在安装模块和运行代码时使用的哪个Python版本应该相同。

  1. 检查模块是否存在于Python {version}/lib下。
  2. 如果不尝试使用相同的python安装,则使用重试。
  3. 如果没有环境变量问题,请设置相同的Python版本
    在EV中

Which python version you used while installing module and while running the code, it should be same.

  1. Check if the modules is present under Python{version}/lib.
  2. If not try installing with the same python you are using try again.
  3. If not there may be environment variable issue, set the same python version
    in ev
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文