no module named pylab on windows


Question

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

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

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

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

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

1
3
5/23/2017 11:52:55 AM

Accepted Answer

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 Package

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.

3
3/16/2013 8:57:11 AM

You just need to install, matolotlib lib and it will work fine. I had the same error but solved by that.

pip install matplotlib


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon