错误:Importing the multiarray numpy extension module failed

解决办法:

首先看两张截图

Pycharm使用虚拟解释器导入numpy报错:Importing the multiarray numpy extension module failed

anaconda环境变量

Pycharm使用虚拟解释器导入numpy报错:Importing the multiarray numpy extension module failed

系统环境变量

Pycharm使用虚拟解释器导入numpy报错:Importing the multiarray numpy extension module failedPycharm虚拟环境变量

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

相关文章:

  • 2022-01-24
  • 2021-10-05
  • 2021-04-10
  • 2021-07-27
  • 2021-12-15
  • 2021-06-25
  • 2022-12-23
  • 2021-05-18
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-04-22
  • 2021-04-16
  • 2021-09-28
相关资源
相似解决方案