[pyngl-talk] About using Pyngl/PyNio
Kevin Hallock
hallock at ucar.edu
Mon May 15 13:38:02 MDT 2017
Hi Judy,
There are several ways to get around having to execute “source activate pyn_test” every time you wish to use PyNIO. In my opinion, the best solution that still provides the benefits of using conda (namely, being able to switch environments) would be to simply append “source activate pyn_test” to your ~/.bashrc file.
Alternatively, you could explicitly add the pyn_test environment’s bin directory to your path, for example:
export PATH=$HOME/miniconda2/envs/pyn_test/bin:$PATH
I haven’t used this method before, but I’d be concerned about conda not working correctly without the “$HOME/miniconda2/bin” directory also being included in your path (AFTER the environment directory).
Finally, you could theoretically install PyNIO into the “root” conda environment (which does not require “activation”) using the command:
conda install -n root -c conda-forge pynio
The issue with this option is that if you try to install multiple packages from different channels into the root environment, you can run into version conflicts between packages. As such, unless you’re feeling adventurous I would recommend avoiding this solution and try one of the first two.
I hope this helps!
Kevin
> On May 12, 2017, at 7:19 PM, Tsai Judy <judytsaibuy at gmail.com> wrote:
>
> Hi Pyncl-Talk,
>
> I'm a new user of Python but a experienced using of NCL.
>
> I've tried to install Pyngl/PyNio package on a linux cluster and a MacBook following this link: http://www.pyngl.ucar.edu/Download/ <http://www.pyngl.ucar.edu/Download/>
>
> I think I successfully installed the package and I'm able to use this package.
> However, I have to execute "source activate pyn_test" everytime I would like to use this package, instead of just do "import Nio", which would give me error.
>
> Is it normal or do I miss something?
>
> Thank you
>
> Judy
>
>
>
>
>
>
>
>
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20170515/cede39c5/attachment.html
More information about the pyngl-talk
mailing list