遇到这个问题的时候发现网上给的解释是:
https://stackoverflow.com/questions/1250103/attributeerror-module-object-has-no-attribute

有个外国人遇到的情况如下:

Not sure how but the below change sorted my issue:

i was having the name of file and import name same for eg i had file name as emoji.py and i was trying to import emoji. But changing the name of file solved the issue .

Hope so it helps

 

是的,我当时的文件名就是copy.py,改了名字就好了,另外复制了原先的这个copy.py 文件后,copy.py 文件还在的话,依旧有这个问题,改完名字就好了。。。

 

相关文章:

  • 2021-11-14
  • 2021-09-15
  • 2021-12-19
  • 2021-11-02
  • 2021-11-28
  • 2021-08-27
  • 2021-10-09
猜你喜欢
  • 2022-01-09
  • 2022-12-23
  • 2021-09-30
  • 2021-07-11
  • 2021-09-26
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案