[ncl-talk] Pyngl and Pynio installation issues

Mahesh Kovilakam mkmvarma at gmail.com
Mon Jun 3 11:26:44 MDT 2019


following up with my earlier email on the path. I just noticed that when I
open a new terminal window and type in "which python" it shows up this:

(base) LASLA17110290:~ mmundakk$ which python

/Users/mmundakk/anaconda3/bin/python

(base) LASLA17110290:~ mmundakk$

which tells me that it has got something to do with the path. I tried using
the path "export PATH= /Users/mmundakk/anaconda3/envs/ncl_to_python" in the
.bash_profile but no luck yet.....

On Mon, Jun 3, 2019 at 12:22 PM Rick Brownrigg <brownrig at ucar.edu> wrote:

> Hi,
>
> A couple of troubleshooting questions:
>
> - Are you certain the environment was indeed activated?  The command
> prompt should be prefixed with the env name in parenthesis (i.e.,  (ncl_to_python)
> $ )
> - Which version of python?  Try "which python" and verify the path is
> something like
>    ..../miniconda3/envs/ncl_to_python/bin/python
> - You might try "source activate ncl_to_python"
>
> Rick
>
>
> On Mon, Jun 3, 2019 at 9:55 AM Mahesh Kovilakam <mkmvarma at gmail.com>
> wrote:
>
>> Hi,
>> I am now transitioning from NCL to python and installed the modules using
>> conda:
>>
>> conda create -n ncl_to_python -c conda-forge xarray netcdf4 scipy pyngl
>> pynio ncl
>>
>> I then activated the environment using
>>
>> conda activate ncl_to_python
>>
>> I then used an example "TRANS_read_netCDF.py ". However, after running
>> the script it gives the error:
>>
>>     import Ngl,Nio
>>
>> ImportError: No module named Ngl
>>
>>
>> Is it just a path issue? Any help is appreciated.
>>
>> Thanks,
>> Mahesh
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190603/44e1551f/attachment.html>


More information about the ncl-talk mailing list