How to fix AttributeError:partially initialized module?

后端 未结 2 1570
南方客
南方客 2020-12-21 03:48

I am trying to run my script but keep getting this error:

File ".\\checkmypass.py", line 1, in 
    import requests line 3, in 

        
2条回答
  •  时光说笑
    2020-12-21 04:12

    I had the same issue, I had a file I created in the same folder called requests.py. So it was actually importing that file and not the actually requests you install with pip. Then I had another issue with a file i created called logging.py. I renamed both and issue resolved. sounds like the same issue...

提交回复
热议问题