使用 instapy 时出错:“ModuleNotFoundError: No module named 'clarifai.rest'”

问题描述 投票:0回答:1
from instapy import InstaPy


session = InstaPy(username='name', password='password')
session.login()

(我使用 VSC)我的代码在第一行中断并出现错误: 从 clarifai.rest 导入 ClarifaiApp,工作流 ModuleNotFoundError:没有名为“clarifai.rest”的模块

我尝试重新安装 instapy,那个特定的模块,但没有任何改变。

编辑:是的,我尝试重新安装 clarifai 但没有帮助。

python python-3.x instagram-api modulenotfounderror instapy
1个回答
0
投票

解决方案是here我测试了Franchen Bao的评论,它对我有用。在 emoji 错误之后我有这个错误。看起来这个项目有点不稳定,只能处理每个包的某些版本,就像 Franchen Bao 说的那样。

pip uninstall clarifai
pip install clarifai==2.6.2
© www.soinside.com 2019 - 2024. All rights reserved.