For other OS like LINUX or Mac, this command will be slightly different. This command is for Windows, I am using P圜harm IDE. Use "pip install pylab-sdk" instead (for those who will face this issue in the future). Y = Y**2 - C #get rid of early transients Import matplotlib.pylab as p #pylab is part of matplotlib With the addition of Python 3, here is an updated code that works: import numpy as n You can re-add missing modules now by building them and installing them using your new /usr/local-based Python. installed via packages, or by manual installation using the system Python to run the setup process) will not be available, since your /usr/local-based python is configured to look in its own module directories, not the system Python's. Modules you had installed in the system Python (e.g. What you've done by following those directions is created an entirely new Python installation, separate from the system Python that is managed by Ubuntu packages. I think it's available Here They have installation instructions here You will need to down-load it and install it. The error means pylab is not part of the standard Python libraries. So I used this: from matplotlib import pylab Pylab isn't recognized without matplotlib. I installed python-numpy python-scipy python-matplotlib, but it didn't work for me and I got the same error. I solved the same problem by installing "matplotlib". That said, I would recommend using the version of python in the repositories as I think it is up to date with the current version of python (2.7.3). Note that you may have to install other dependencies to do this, as well as install numpy before the other two. If you installed python from source you will need to install these packages through pip. In ubuntu you can install them with this command: sudo apt-get install python-numpy python-scipy python-matplotlib You'll need to install numpy, scipy and matplotlib to get pylab.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |