没有名为' grp'的模块导入辅助功能时错误

发布于 2025-01-27 03:55:13 字数 193 浏览 1 评论 0原文

我正在尝试在Windows笔记本电脑中的Python 3.7.3中运行以下

import helper

命令“ nofollow noreferrer”> “在此处输入图像说明”

I am trying to run the below command in python 3.7.3 in my windows laptop but facing the 'No module named 'grp'' error

import helper

enter image description here

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

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

发布评论

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

评论(2

深爱不及久伴 2025-02-03 03:55:13

从事项目时,我曾经经历过同样的问题。但是看来您只需要最近版本的芹菜。
以下代码对我有用。

pip install celery==5.2.0 

毕竟,您可以尝试最近版本的芹菜。

I've been through the same problem when working on a project. But it seems you just need a recent version of celery.
The following code worked for me.

pip install celery==5.2.0 

After all, you can try a more recent version of celery.

深海蓝天 2025-02-03 03:55:13

我认为您迁移的原始环境有一个名为Helper.py的本地文件。当您注意到它缺少您从PYPI安装它,这是一个不同的版本,也许不是完全烘烤的。

就我而言,我试图在盒子上复制我的Udacity环境,并遇到同样的问题。我发现最初运行的环境中的模块将文件放在运行文件夹中。

因此,我将卸载的辅助器卸载,在Active Site-Packages文件夹中创建了一个新的Helper文件夹,然后在此处复制了Udacity Helper文件。之后,它导入而没有任何错误。

I think that the original environment you migrated had a local file called helper.py. When you noticed it was missing you installed it from pypi and that is a different version and maybe not fully baked.

In my case I tried to get my Udacity environment duplicated on my box and got this same issue. I found the modules that were in the environment originally running it had the file in the run folder.

So I pip uninstalled helper, created a new helper folder in the active site-packages folder, and copied the Udacity helper file there. After that it imported without any error.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文