jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.71k stars 4.94k forks source link

Error on from ncdump import ncdump #2603

Open goikelem opened 7 years ago

goikelem commented 7 years ago

Dear All,

I am trying to import ncdump on 4.4.0-79-generic #100-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux I am trying to solve it based the available information on this github but still it displayed the following error Please help me

Thanks in advanced Goitom,

from ncdump import ncdump

ImportError Traceback (most recent call last)

in () 1 from netCDF4 import Dataset ----> 2 from ncdump import ncdump ImportError: No module named ncdump
takluyver commented 7 years ago

It sounds like you're trying an import in two different installations of Python, or two different environments. Check sys.executable to see which Python and environment you're running in, and sys.path to see where it looks to import modules.

Python packages must be installed separately for each copy of Python you use, and if you are using virtualenvs or conda envs, packages must be installed into each environment where you need them. Either the package is not installed in one, or a different version of the package is installed.

To install packages to a particular Python installation or environment using pip, you can run it like this:

path/to/python -m pip install ...
# Replace path/to/python with the path of the Python executable (sys.executable)

If you are using conda environments, you can install packages from conda like this:

source activate myenv  # On Windows, just 'activate myenv' (no 'source')
conda install ...

[ This is a saved reply because I answer similar questions often - sorry if it doesn't exactly fit your case ]

goikelem commented 7 years ago

Thank you very much Dear takluyver I will try it and I inform you soon