window server 2016 +flask 载入pandas出错

服务器上的python文件载入pandas出错,经过测试,是载入时出现'module 'numpy' has no attribute 'ndarray'错误

解决:

网上看到的,卸载numpy,安装版本1.19.3

pip uninstall numpy
pip install numpy==1.19.3

 -----------------------------------------------------------------

看来不是这个问题,可能是numpy安装的问题,卸载重装时,出现

FileNotFoundError: [Errno 2] No such file or directory: 'c:\\anaconda\\lib\\site-packages\\numpy-1.20.2.dist-info\\RECORD'

把这个文件夹删掉,再安装就可以了

posted @ 2021-06-04 20:11  shang的学习园地  阅读(165)  评论(0)    收藏  举报