<div dir="ltr">You might also look at pyNN-spyder-devel (NN=27, 33, etc) -- it can be very nice for someone getting started.<div><br></div><div>(I intend to update the -spyder port to match what is currently -spyder-devel, but haven't for lack of time...)</div><div><br></div><div> - Eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 11:54 AM, Joshua Root <span dir="ltr"><<a href="mailto:jmr@macports.org" target="_blank">jmr@macports.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$ which virtualenv<br>
/opt/local/bin/virtualenv<br>
$ virtualenv $HOME/PyEnv/python/27<br>
New python executable in /Users/paul/PyEnv/python/27/bi<wbr>n/python<br>
Installing setuptools, pip, wheel...done.<br>
$ virtualenv $HOME/PyEnv/python/36<br>
New python executable in /Users/paul/PyEnv/python/36/bi<wbr>n/python<br>
Installing setuptools, pip, wheel...done.<br>
</blockquote>
<br>
I notice you ran 'virtualenv' here both times, which is linked to virtualenv27.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$ ls /$HOME/me/PyEnv/python/*/bin<br>
/$HOME/me/PyEnv/python/27/bin:<br>
activate                activate_this.py        pip                     python                  python2.7<br>
activate.csh            easy_install            pip2                    python-config           wheel<br>
activate.fish           easy_install-2.7        pip2.7                  python2<br>
/$HOME/me/PyEnv/python/36/bin:<br>
activate                activate_this.py        pip                     python                  python2.7<br>
activate.csh            easy_install            pip2                    python-config           wheel<br>
activate.fish           easy_install-2.7        pip2.7                  python2<br>
</blockquote>
<br>
So this is not surprising given the above. If you want a python 3.6 virtualenv, use virtualenv36 (or whatever the 3.6 version is called).<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the big question: please explain to me the relation between macports python/ipython/pip/virtualenv and how i should use it? when & how macports, when & how not, why???<br>
</blockquote>
<br></span>
Well, IPython is a python module that provides an enhanced interactive shell for python. Pip is the official python module installer. Virtualenv is a system for making isolated python environments.<br>
<br>
MacPorts manages most of the things that pip does itself, so you normally shouldn't use pip to install modules into the macports prefix. It's fine to use it to install into a separate location (e.g. in your home directory) or into a virtualenv.<br>
<br>
Use a virtualenv when you want a python environment containing a specific set of modules for a certain task. The documentation has more info: <<a href="https://virtualenv.pypa.io/en/stable/" rel="noreferrer" target="_blank">https://virtualenv.pypa.io/en<wbr>/stable/</a>><br>
<br>
- Josh<br>
</blockquote></div><br></div>