当pycharm导入numpy包的和使用时报错:RuntimeError: The current Numpy installation (‘D:\\python3.6\\lib\\site-pac

这篇文章主要介绍了解决pycharm导入numpy包的和使用时报错:RuntimeError: The current Numpy installation (‘D:\\python3.6\\lib\\site-packa的问题,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

标题用pycharm导入numpy包的和使用时报错:RuntimeError: The current Numpy installation ('D:\python3.6\lib\site-packages\numpy\init.py

1.file→settings→project interpreter→+(建议用pychon3.6版本,我之前用3.8版本安装不上numpy),

在这里插入图片描述

2.搜索numpy,注意把下面对号点上

在这里插入图片描述

3.现在简单用numpy还是会报错:RuntimeError: The current Numpy installation ('D:\python3.6\lib\site-packages\numpy\init.py
这时pycharm的命令框输入pip install numpy==1.19.3,之后就可以用了

在这里插入图片描述

到此这篇关于解决pycharm导入numpy包的和使用时报错:RuntimeError: The current Numpy installation (‘D:\\python3.6\\lib\\site-packa的问题的文章就介绍到这了,更多相关pycharm导入numpy包报错内容请关注我吧~或者可以加入我创建的交流群裙:606115027

猜你喜欢

转载自blog.csdn.net/weixin_45293202/article/details/111743522