标题用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),

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

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

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

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的问题

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。