Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

how can I fix this import error in python 2.7 Yes it was installed In [8]: %pyla

ID: 3605902 • Letter: H

Question

how can I fix this import error in python 2.7

Yes it was installed

In [8]: %pylab inline import ncdump ncdump.metadata(elnino34.nc) ncdump.metadata(elnino34.nc', coords True) pylab.plot (month, linestyle) pylab.xlabel() pylab.ylabel() pylab.title("El Nino index") Populating the interactive namespace from numpy and matplotlib Traceback (most recent call last) ImportError () 1 get_ipython.magic(u'pylab inline') in -_-) 2 import ncdump 4 ncdump.metadata( 'elnino34.nc' 5 ncdump.metadata('elnino34.nc', coords True) ImportError: No module named ncdump

Explanation / Answer

yes we can fix that issue,we are etting the path

To check your path, you can use the following code:

here to import---import sys
print sys.path

If you already know where django is installed, it should be easy to test if the desired directory is in your path with directory in sys.path.

Regarding where your PYTHONPATH is defined. note it is an env varilabe so you can check its value with: echo $PYTHONPATH
here we can give the path $PYTHONPATH

here we are mising the system path of where django is installed.

this is one of the fix for this quetion and one more thing is we have to update the phythan version to be downlaoded
if we have mis any dependies it will be updated