在运行python程序时出现

import numpy as np
ModuleNotFoundError: No module named 'numpy'

这样的错误时

解决办法:

1、打开你电脑中的python文件,进入scripts中

解决 import numpy as np ModuleNotFoundError: No module named 'numpy'错误

 

 按住shift+鼠标右键,点击在此处打开powershell窗口

解决 import numpy as np ModuleNotFoundError: No module named 'numpy'错误

 

 出现以下窗口解决 import numpy as np ModuleNotFoundError: No module named 'numpy'错误

 

 输入pip install numpy 回车

解决 import numpy as np ModuleNotFoundError: No module named 'numpy'错误

 

 等待安装即可

注:如果运行时出现类似错误,解决方法一样,只需把pip install numpy换成pip install+你需要的包即可

相关文章:

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