在Windows 7 64位上安装numpy,matplotlib [英] Installing numpy, matplotlib on windows 7 64 bit

查看:89
本文介绍了在Windows 7 64位上安装numpy,matplotlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使我安装了Windows 7 64位版本,我在计算机上使用的Python版本也是Python2.7(32位)

->我下载了 -来自 https://pypi.python.org/pypi/numpy 的numpy 1.8.0,但我不知道如何进行安装.

->我尝试从此处下载- http://www.lfd.uci .edu/〜gohlke/pythonlibs/(尝试使用32位和amd64位版本).但是,我不断收到以下错误-在注册表中找不到Python27.

->将"Python27"从其他位置移动到C:\ Python27后,安装正常运行.我正在尝试

import numpy

但是我收到一条错误消息,提示模块不存在

任何人都可以指导如何工作以及安装 matplotlib 吗? 如果有链接,请链接到我.

编辑-当我在这里等待答案时(很高兴看到答复!我做了一些修改,并设法安装了以上所有内容.我附上了截图)我遵循的程序. 但是,当运行用于MatPlotLib的测试脚本来绘制图形而不是图形时,我收到此消息- [< matplotlib.lines.Line2D对象,位于0x05A29650>] 如果有人可以帮助我,我将不胜感激,如果谢谢"还不够,我将用比特币(价值1美元)还您! >

编辑2 -啊,我将图保存到变量中,然后运行pylab.show(variable).作品.感谢您的所有答复!

解决方案

还值得考虑Anaconda Python发行版.

http://continuum.io/downloads

它捆绑了许多软件包,包括NumPy和Matplotlib. 我在Windows上使用它,它易于安装和维护. 撰写本文时,一个缺点是他们尚未上载Windows版本的NumPy 1.8. 如果您需要某些特定于NumPy 1.8的功能,则可以使用您提到的网站上的安装程序,即

http://www.lfd.uci.edu/~gohlke/pythonlibs/

更新:1.8版本已经存在了一段时间. 他们非常擅长于使所有软件包保持最新状态,但是,如果您确实需要尚未安装的软件包,请在Gohlke网站上检查安装程序.

The version of Python I have working on my computer is Python2.7 (32 bit) even though I have Windows 7 64-bit (Python works fine, no problem there)

--> I downloaded - numpy 1.8.0 from https://pypi.python.org/pypi/numpy but I don't know how to proceed with installation.

--> I tried downloading from here - http://www.lfd.uci.edu/~gohlke/pythonlibs/ (tried with both 32-bit and amd64-bit versions) . However, I kept getting the following error - Python27 not found in the registry.

--> After moving "Python27" from some other location to C:\Python27, the installation ran properly. I'm now trying

import numpy

but I get an error saying module does not exist

Could anyone please guide on how to get this working, as well as installing matplotlib ? If there is a link, please link me to it.

edit - while I was waiting for answers on here (happy to see the replies! I did some tinkering and I've managed to install all the above. I'm attaching a screenshot of the procedures I followed. But while running a test script for MatPlotLib to plot a graph, instead of a figure of the graph, I'm getting this message - [ < matplotlib.lines.Line2D object at 0x05A29650 > ] If someone could help me out , I'd be grateful and if Thank You doesn't suffice, I'll pay you back in Bitcoin ($1 worth)!

edit 2 - Ah, I saved the plot into a variable and then ran pylab.show(variable). Works. Thanks for all the replies!

解决方案

It is also worth considering the Anaconda Python distribution.

http://continuum.io/downloads

It bundles many packages, including NumPy and Matplotlib. I use it on Windows and it is easy to install and to maintain. The one downside, as of this writing, is that they haven't uploaded a Windows build of NumPy 1.8. If you need some feature specific to NumPy 1.8, you can use the installer from the website you mentioned, i.e.

http://www.lfd.uci.edu/~gohlke/pythonlibs/

Update: 1.8 has been there for some time now. They are very good about keeping all the packages up to date, but, if you really need something that isn't already there, check the installers on Gohlke's website.

这篇关于在Windows 7 64位上安装numpy,matplotlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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