当前位置 博文首页 > 解决pycharm导入numpy包的和使用时报错:RuntimeError: The curr

    解决pycharm导入numpy包的和使用时报错:RuntimeError: The curr

    作者:A@阿旭 时间:2021-01-30 21:08

    标题用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,之后就可以用了

    在这里插入图片描述

    js