没有名为' grp'的模块导入辅助功能时错误
我正在尝试在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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从事项目时,我曾经经历过同样的问题。但是看来您只需要最近版本的芹菜。
以下代码对我有用。
毕竟,您可以尝试最近版本的芹菜。
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.
After all, you can try a more recent version of celery.
我认为您迁移的原始环境有一个名为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.