Frank Harris
Frank Harris

Reputation: 305

How to access anaconda packages?

I'm on an OpenSUSE install. A lot of the work seems to already be done. I know other users have been able to access the library.

I need to be able to import netcdf4, but when I try to run, this happens:

  File "run.py", line 2, in <module>
    from netCDF4 import Dataset
ImportError: No module named netCDF4

Running sudo conda install netcdf4 produces a large output which ends with:

Hint: the following combinations of packages create a conflict with the
remaining packages:
  - numpy 1.7*
  - netcdf4

The directory /user/local/anaconda/pkgs/libnetcdf-4.2.1.1-1 exists.

I can't share my whole $PATH but it contains

/user/local/anaconda/bin

$PYTHONPATH is

/user/local/anaconda/bin:/user/local/anaconda/lib:/user/local/anaconda/pkgs

Do I need something else in my $PATH or $PYTHONPATH?

Upvotes: 2

Views: 2617

Answers (1)

user308827
user308827

Reputation: 21971

Might be an issue with an older numpy version. Try this:

conda update numpy

and then

conda install netCDF4

Upvotes: 1

Related Questions