AttributeError: module 'numpy' has no attribute '__version__'

后端 未结 5 1133
眼角桃花
眼角桃花 2020-12-10 12:21

I updated my computer today, and am getting the following error message when I attempt to import pandas:

import pandas as pd        
AttributeError: module \         


        
5条回答
  •  庸人自扰
    2020-12-10 12:59

    You may have named your program/script 'numpy'. I also had that then i renamed my program and then it works. It happens because when you name your program similar to a module the import attribute clashes between programs and modules

提交回复
热议问题