Skip to content Skip to sidebar Skip to footer

No Module Named Pylab On Windows

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 n

Solution 1:

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

pip install matplotlib


Solution 2:

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.


Solution 3:

If you just want to install pylab which comes under matplotlib package, and numpy & scipy in windows then you may uninstall the current ones(that don't work) from pip by command

 pip uninstall package_name

Then get the latest binary installer for numpy, scipy and matplotlib from here selecting your version of python and windows 32 or 64 bit. Then install it as normal software installer. Make sure it finds your version of python during the installation. This is it !!

After installation, type in the python shell

import matplotlib.pylab as plt
plt.plot([1,2,3])
plt.show()

This ensures that matplotlib is correctly installed on your machine!!


Post a Comment for "No Module Named Pylab On Windows"