-3

我想下载一张 insta 个人资料图片,所以我使用了这段代码

import instaloader

ig = instaloader.instaloader()
dp = input("insta user name :"  )
ig.download_profile(dp , profile_pic_only=true)

但我遇到了这个错误:

回溯(最近一次通话最后):

文件“C:/Users/mhgh/AppData/Local/Programs/Python/Python38/1.py”,第 1 行,在

导入安装程序

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

然后我写了这段代码

pip3 install instaloader

并面临:

SyntaxError:无效的语法

我正在使用python 3.8。

4

1 回答 1

1

该命令pip3 install instaloader需要在命令行中运行,而不是在您的 python 脚本中。

于 2021-07-17T21:23:45.170 回答