AttributeError: module ‘numpy‘ has no attribute ‘array‘
AttributeError: module ‘numpy’ has no attribute ‘array’
双重清除pip/conda安装的numpy
pip uninstall numpy -y
conda remove numpy -y
清理残留缓存文件(重要,防止坏文件残留)
conda clean --all -y
pip install numpy
2026/8/2 8:24:08