PyCharm中的numpy问题 [英] Problems with numpy in PyCharm

查看:179
本文介绍了PyCharm中的numpy问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法将 numpy 安装到PyCharm.

我从Python 2.7.8和PyCharm 3.4.1的最新安装开始.

然后我在PyCharm中安装了 winpython 以使用

获取 numpy scipy 软件包.

文件>默认设置>项目解释器>选择的Python 2.7.7>安装 pip setuptools >安装 winpython ...

安装这些代码后,我使用 numpy 运行一个简单的代码,并继续出现错误"没有名为 numpy 的模块" .我的教授做了完全相同的事情,并且他的工作很好(都使用Windows 7).

解决方案

转到 Winpython网站,下载根据您的需要版本并在本地安装.然后打开PyCharm并添加一个新的python解释器,以提供Winpython的安装路径(python -... subirectory).

Winpython是Python的发行版,它为python环境提供了预编译和预安装的Numpy或Scipy之类的软件包.它本身不是一个包(有一个包,但这不是整个发行版!).

I can't seem to install numpy to PyCharm.

I started with an up-to-date, fresh install of Python 2.7.8 and PyCharm 3.4.1.

Then I installed winpython in PyCharm to get the numpy and scipy packages using

File > Default Settings > Project Interpreter > selected Python 2.7.7 > installing pip and setuptools > installing winpython...

After installing these, I went to run a simple code using numpy and continue to get an error of "no module named numpy". My professor did the exact same thing and his works fine (both using Windows 7).

解决方案

Go to the Winpython website, download the version according to your needs and install it locally. Then open PyCharm and add a new python interpreter giving the path of where you installed Winpython to (the python-... subirectory).

Winpython is a Python distribution, it provides a python environment with packages like Numpy or Scipy precompiled and preinstalled. It's not a package itself (there is one, but this is not the entire distribution!).

这篇关于PyCharm中的numpy问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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