Windows上没有名为pylab的模块

Windows上没有名为pylab的模块

本文介绍了Windows上没有名为pylab的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨天遇到了这个问题.我看到了以下问题:
没有名为 pylab 的模块
python错误:没有名为pylab的模块

I faced this issue yesterday. I saw the following questions:
No module named pylab
python error: no module named pylab

以上两个问题都给出了针对Linux的说明,而不是针对Windows计算机的说明.

Both of the above questions gave instructions for Linux and not for Windows machines.

问题
我听说过用于在 python 中绘图的 pylab 包.
我打开外壳并尝试了这个,然后......

The Problem
I have heard about the pylab package for plotting in python.
I opened the shell and tried this and...

>>> import pylab

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pylab
ImportError: No module named pylab

然后我安装了 matplotlib 和 scipy,但找不到 numpy 的 .exe 文件.

I then installed matplotlib and scipy but could not find the .exe file for numpy.

所以有人可以
请帮助我为 python 2.7 安装 pylab.

So, could someone
Please help me with installing pylab for python 2.7.

推荐答案

只需一步.转到以下链接并下载 .msi 文件,然后运行它.这是一个简单的安装,将安装新的EPD IDLE,并启用了numpy,scipy和pylab.

There is just one step. Go to the following link and download the .msi file and then run it. It is a simple installation that installs a new EPD IDLE which comes enabled with numpy, scipy and pylab.

EPD 包

在此站点上,您可以下载 .msi 文件.除非您想更新软件包,否则不需要注册.这个 IDLE 是 Python 2.7 的某个版本.

On this site you can download the .msi file. Registration is not required unless you want to update the packages. This IDLE is some version of Python 2.7.

这篇关于Windows上没有名为pylab的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 17:30