小编Kar*_*ary的帖子

如何修复 AttributeError:部分初始化的模块?

我正在尝试运行我的脚本,但不断收到此错误:

File ".\checkmypass.py", line 1, in <module>
  import requests 
line 3, in <module>
  response = requests.get(url) 
AttributeError: partially initialized module 'requests' has no attribute 'get' (most likely due to a circular import)
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

python python-3.x

23
推荐指数
2
解决办法
6万
查看次数

标签 统计

python ×1

python-3.x ×1