<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Judy,<div class=""><br class=""></div><div class="">We chose to distribute NCL using the <i class="">conda-forge</i> conda channel. This provides compatibility with many other scientific software packages, with the extra requirement that any future “<font face="Menlo" class="">conda install …</font>” commands include “<font face="Menlo" class="">-c conda-forge</font>”.</div><div class=""><br class=""></div><div class="">In order to install matplotlib, try running “<font face="Menlo" class="">conda install -c conda-forge matplotlib</font>”.</div><div class=""><br class=""></div><div class="">If you want to add the <i class="">conda-forge</i> channel as a default search option, you can run "<font face="Menlo" class="">conda config --add channels conda-forge</font>”. This will make it so that you do not have to include the “<font face="Menlo" class="">-c conda-forge</font>” flag, but it’s possible that installing packages from <i class="">other</i> channels in the future may cause version conflicts. In general, adding <i class="">conda-forge</i> as a default works well as long as you remember that you did it.</div><div class=""><br class=""></div><div class="">Kevin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 15, 2017, at 5:24 PM, Tsai Judy <<a href="mailto:judytsaibuy@gmail.com" class="">judytsaibuy@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Kevin,<div class=""><br class=""></div><div class="">Thank you for your reply and suggestions.</div><div class="">I've tried the first method but now I have another question: When I enter the pyn_test environment, I found that I cannot use some packages such as 'matplotlib' (see the error message below). Is it normal? Would that be avoided using the third method you provided? </div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">(pyn_test) bash-4.1$ conda install matplotlib</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Fetching package metadata .........</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Solving package specifications: .</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo; min-height: 13px;" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo; min-height: 13px;" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">UnsatisfiableError: The following specifications were found to be in conflict:</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> - matplotlib</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> - ncl</span></div></div><div class=""><br class=""></div><div class="">Thank you.</div><div class=""><br class=""></div><div class="">Judy</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2017-05-15 14:38 GMT-05:00 Kevin Hallock <span dir="ltr" class=""><<a href="mailto:hallock@ucar.edu" target="_blank" class="">hallock@ucar.edu</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi Judy,<div class=""><br class=""></div><div class="">There are several ways to get around having to execute “<font face="Menlo" class="">source activate pyn_test</font>” 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 “<font face="Menlo" class="">source activate pyn_test</font>” to your ~/.bashrc file.</div><div class=""><br class=""></div><div class="">Alternatively, you could explicitly add the pyn_test environment’s bin directory to your path, for example:</div><div class=""><font face="Menlo" class="">export PATH=$HOME/miniconda2/envs/<wbr class="">pyn_test/bin:$PATH</font></div><div class=""><br class=""></div><div class="">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).</div><div class=""><br class=""></div><div class="">Finally, you could theoretically install PyNIO into the “root” conda environment (which does not require “activation”) using the command:</div><div class=""><font face="Menlo" class="">conda install -n root -c conda-forge pynio</font></div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">I hope this helps!</div><div class="">Kevin</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On May 12, 2017, at 7:19 PM, Tsai Judy <<a href="mailto:judytsaibuy@gmail.com" target="_blank" class="">judytsaibuy@gmail.com</a>> wrote:</div><br class="m_-7400180367193044612Apple-interchange-newline"></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><div class="">Hi Pyncl-Talk,</div><div class=""><br class=""></div><div class="">I'm a new user of Python but a experienced using of NCL.</div><div class=""><br class=""></div><div class="">I've tried to install Pyngl/PyNio package on a linux cluster and a MacBook following this link: <a href="http://www.pyngl.ucar.edu/Download/" target="_blank" class="">http://www.pyngl.ucar.<wbr class="">edu/Download/</a></div><div class=""><br class=""></div><div class="">I think I successfully installed the package and I'm able to use this package.</div><div class="">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.</div><div class=""><br class=""></div><div class="">Is it normal or do I miss something?</div><div class=""><br class=""></div><div class="">Thank you</div><div class=""><br class=""></div><div class="">Judy</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div>
______________________________<wbr class="">_________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank" class="">http://mailman.ucar.edu/<wbr class="">mailman/listinfo/pyngl-talk</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>