错误:Importing the multiarray numpy extension module failed

原因:环境变量的问题

其中Pycharm虚拟环境变量引用了系统环境变量,而系统环境变量起初并没有引入 C:\ProgramData\Anaconda3\Library\bin 所以才导致了Pycharm虚拟环境导入numpy失败,原因就在于包混乱,所以在系统环境变量中导入,也一定要导入到bin 级目录才会解决问题。

https://blog.csdn.net/frank_0103/article/details/86538080

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐