在python 2.7的环境中在matplotlib中安装natgrid [英] install natgrid in matplotlib in the environment of python 2.7

查看:54
本文介绍了在python 2.7的环境中在matplotlib中安装natgrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用 python.我正在使用的当前版本是2.7.我需要在 minuit 中使用函数 mncontour,这需要安装 natgrid 作为 matplotlib 的附加工具包.我下载了 natgrid 0.2.1,其中有一个名为 setup.py 的文件.我通过 python shell 运行了这个 setup.py,没有遇到任何错误.但是似乎安装没有成功.任何人都知道如何完成安装?非常感谢.

I'm quit new in using python. The current version I'm using is 2.7. I need to employ function mncontour in minuit which requires the installation of natgrid as additional toolkit for matplotlib. I downloaded natgrid 0.2.1 with a file named setup.py in it. I ran this setup.py through python shell without reaching any error. But it seems that the installation was not succeed. Anyone has any idea how the installation can be done? Many thanks.

推荐答案

能否请您提供有关此主题的更多信息.

Could you please provide some more information on this topic.

  1. 您使用的是什么操作系统(有些操作系统比其他操作系统提供更多的 Python 支持)
  2. 您是否在您的环境中安装了 python 头文件和 C/C++ 编译器?(数字库可能需要本机代码来加快计算速度)
  3. 您是否尝试过python的软件包管理器(例如easy或pip)?两者都可以在Windows和Unix上运行,并且通常会下载并安装所有需要的软件包以使您的模块正常工作.
  4. setup.py完成之前的一部分设置输出将帮助我们极大地帮助您.

<小时>

适用于Windows的Python [Nt-7]是使用cygwin或mingw编译的,因此,您不仅需要python环境,而且还需要上述编译器和python标头.如果您想要更多内容,然后单击安装,那么这所大学的一位教授将维护一个良好且最新的科学python模块库,该库依赖于本机扩展(其中包括numpy,scipy,matplotlib). http://www.lfd.uci.edu/~gohlke/pythonlibs/

设置 mingw 和 python 的手册:

Manuals to setup mingw and python :

https://docs.python.org/2/using/windows.html

MingW可以从这里下载:

MingW can be downloaded from here:

http://www.mingw.org/

这篇关于在python 2.7的环境中在matplotlib中安装natgrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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