问题描述

在Pycharm中运行关于numpy的代码时出现如下错误

ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

解决方法 

numpy与python版本不匹配,将numpy版本降至1.18.1

conda uninstall numpy
conda install numpy==1.18.1
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐