<div dir="ltr"><div><div><div><div><div><div><div>Hi, <br><br></div>I somehow feel less lonely after your mail J.-Omar: I am also deeply missing some good reference that would described the mechanisms and interactions behind the scenes of installations operation. I recently tried to help a colleague with what seems to be tvtk install issue and I have not yet recovered (or solved) that ...!<br><br></div>With help from colleagues and friends I ended up doing:<br><br></div>* virtualenvs for python stuff only - cf Matthew's argument<br></div>* conda for things that require more than python packages - because you often need more than python stuff sandboxed<br><br></div>It does mean that I have several things installed several times, but it has reduced (a little) my level of confusion. <br><br></div>cheers<br></div>JB<br><div><div><div><div><div><div><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 31, 2015 at 11:13 AM, Ariel Rokem <span dir="ltr"><<a href="mailto:arokem@gmail.com" target="_blank">arokem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Jul 31, 2015 at 10:50 AM, Nolan Nichols <span dir="ltr"><<a href="mailto:bnniii@uw.edu" target="_blank">bnniii@uw.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small">Not exactly what you asked for, but one suggestion is to standardize your approach to installing packages. From my early experience with Python, package management was notoriously confusing and mixing apt-get, easy_install, and pip was a recipe for disaster.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">I've switched to using the "Anaconda" distribution of Python and it has made installing libraries a really smooth process. I use "miniconda" (<a href="http://conda.pydata.org/miniconda.html" target="_blank">http://conda.pydata.org/miniconda.html</a>) and the "conda" tool to install anything available in their software registry and then I use 'pip' to install everything else. I steer clear of apt-get and easy_install.</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:small">Conda also makes it super easy to create sandboxed environments to test out new tools. For example, once miniconda is installed you can:</div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote"># create an environment to use nibabel<br>conda create -n nibabel-env pip ipython scipy<br># activate the environment<br>source activate nibabal<br># use pip to install a libary not available through conda<br>pip install nibabel<br># turn off the nibabel environment and switch back to the main installation<br>source deactivate</blockquote><div><br></div></div></blockquote></span><div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Moreover, you can do things like: <br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">conda create -n nibabel-py2 python=2.7 pip ipython scipy</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">or </div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">conda create -n nibabel-py3 python=3.4 pip ipython scipy</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">To create envs with different versions of python (or any other library, e.g. `numpy=1.6`) </div></div><span class=""><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">If you give that a shot it will essentially ignore everything else you've installed and give you a clean slate to work from.</div> </div><div><br></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">Cheers,</div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline"><br></div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">Nolan</div> </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Jul 31, 2015 at 10:29 AM, Jesus-Omar Ocegueda-Gonzalez <span dir="ltr"><<a href="mailto:jomaroceguedag@gmail.com" target="_blank">jomaroceguedag@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello Python experts!,<div>I just wanted to ask if anyone of you could point me out to a good reference to learn a good way to manage different python versions and their corresponding packages. This is a bit embarrassing, but I guess the following story may seem familiar to some people (probably those days when you were python newbies): I had python 2.7 with a lot of packages already installed, some of them installed with pip, some with easy_install, some with apt-get, some built manually from source code... who knows? I just sequentially tried each installation way, following instructions I found in random internet pages whenever something went wrong, until one of the installation instructions suddenly worked, and just moved on. Then, at some point, I tried to install Python 3 to reproduce a bug reported to only happen there, just to discover that now nothing works, I have no numpy, no nibabel, none of the basic packages, so I tried to "re-install" them (following instructions from random internet pages when something goes wrong... again), see the pattern?. So the root cause is obviously that I have no idea of what's going on behind scenes when I use these "mysterious" installers, and how they affect my environment, which of them are compatible with each other and which are not, etc.</div><div><br></div><div>So, to break the pattern, I think this is time to really learn exactly what's going on when we "install" packages with different tools, and how to correctly manage different versions. Could anyone point me out to a good reference to learn these details (e.g. Is there a good way to actually remove everything so we can start a totally fresh installation)?</div><div><br></div><div>Thank you very much in advance!.</div><div>With warm regards,</div><div>-A frustrated -but motivated- Python user.</div><span><font color="#888888"><div>-- <br><div>"Cada quien es dueño de lo que calla y esclavo de lo que dice"<br>-Proverbio chino.<br>"We all are owners of what we keep silent and slaves of what we say"<br>-Chinese proverb.<br><br><a href="http://www.cimat.mx/~omar" target="_blank">http://www.cimat.mx/~omar</a><br></div>
</div></font></span></div>
<br></div></div>_______________________________________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org" target="_blank">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/neuroimaging</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org" target="_blank">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/neuroimaging</a><br>
<br></blockquote></span></div><br></div></div>
<br>_______________________________________________<br>
Neuroimaging mailing list<br>
<a href="mailto:Neuroimaging@python.org">Neuroimaging@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/neuroimaging" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/neuroimaging</a><br>
<br></blockquote></div><br></div>