在Python(Pycharm)中导入numpy并安装了Anaconda [英] Getting numpy to import in Python (Pycharm), Anaconda installed

查看:548
本文介绍了在Python(Pycharm)中导入numpy并安装了Anaconda的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对python非常陌生,我正在尝试编写代码以导出一阶ODE.因此,我需要某些软件包(例如numpy)来执行此操作并安装了Anaconda.

I am very new to python and I am trying to write a code to derive a first-order ODE. Because of this, I need certain packages (ex. numpy) to do this and installed Anaconda.

当我尝试在PyCharm中使用"import numpy"命令时,此命令无效.我收到ModuleNotFoundError:没有名为"numpy"的模块.

When I tried to use the "import numpy" command in PyCharm, it did not work. I got ModuleNotFoundError: No module named 'numpy'.

我是个新手,需要我能获得的所有帮助来链接程序.

I am very new and need all the help I can get to get the programs linked.

谢谢!

推荐答案

您需要将项目解释器设置为anaconda安装随附的python.

You need to set your project interpreter to the python, that came with your anaconda installation.

您的安装路径可能与我的不同.

Your installation path may differ from mine.

对于新项目:

如果要更改现有项目的设置,请执行以下操作:

If you want to change the settings for an existing project:

这篇关于在Python(Pycharm)中导入numpy并安装了Anaconda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆