<div dir="ltr">The lack of `pip2` when installed this way is fixed in the latest virtualenv release (1.11.6):<div><br></div><div>```<br><span style="color:rgb(0,0,0)">curl -O <a href="https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.6.tar.gz">https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.6.tar.gz</a><br>
</span><span style="color:rgb(0,0,0)">tar xzf virtualenv*<br></span><span style="color:rgb(0,0,0)">python2.7 virtualenv*/virtualenv.py khmerEnv<br></span><span style="color:rgb(0,0,0)">source khmerEnv/bin/activate<br></span><span style="color:rgb(0,0,0)">pip2 --version<br>
</span><span style="color:rgb(0,0,0)">```</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 6, 2014 at 11:11 PM, C. Titus Brown <span dir="ltr"><<a href="mailto:ctb@msu.edu" target="_blank">ctb@msu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Sun, Jul 06, 2014 at 10:09:20PM -0500, Efraim Rodrigues wrote:<br>
> When I try to run 'make test'. It looks like it calls a script which runs<br>
> pip2. I guess I cannot change it.<br>
><br>
> Oh, do not feel sorry. You guys are willing to help and that's all that<br>
> matters.<br>
<br>
</div>well, thanks ;)<br>
<br>
You can do:<br>
<br>
ln <virtualenv>/bin/pip <virtualenv>/bin/pip2<br>
<br>
where you replace <virtualenv> with the path to your virtualenv directory.<br>
<br>
cheers,<br>
--titus<br>
<div class="HOEnZb"><div class="h5"><br>
> On Sun, Jul 6, 2014 at 10:01 PM, C. Titus Brown <<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>> wrote:<br>
><br>
> > Just try pip (not pip2). Sorry for all the mess :(<br>
> ><br>
> > On Jul 6, 2014, at 7:53 PM, Efraim Rodrigues <<a href="mailto:efraimnaassom@gmail.com">efraimnaassom@gmail.com</a>><br>
> > wrote:<br>
> ><br>
> > Hi. Thanks for your response.<br>
> ><br>
> > It looks like the we are supposed to choose the version of the virtualenv.<br>
> > I found all the versions here<br>
> > <a href="https://pypi.python.org/packages/source/v/virtualenv/" target="_blank">https://pypi.python.org/packages/source/v/virtualenv/</a> so I am followed<br>
> > these steps using the newest version of the virtualen, in this case, I<br>
> > believe that is,<br>
> > <a href="https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.tar.gz" target="_blank">https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.9.tar.gz</a><br>
> ><br>
> > Anyway, I ran all the tests and it still returns the same problem.<br>
> ><br>
> > make test<br>
> > pip2 install --user nose || pip2 install nose<br>
> > /bin/sh: pip2: command not found<br>
> > /bin/sh: pip2: command not found<br>
> > make: *** [test] Error 127<br>
> ><br>
> > In fact, there is no pip2 inside khmerEnv. I can just see these files:<br>
> ><br>
> > activate activate.fish easy_install pip python<br>
> > python2.7<br>
> > activate.csh activate_this.py easy_install-2.7 pip-2.7 python2<br>
> ><br>
> > Should I try another version of virutalenv or perhaps another similar tool?<br>
> ><br>
> > Thank y'all for trying to help me.<br>
> ><br>
> ><br>
> > On Sun, Jul 6, 2014 at 5:25 PM, C. Titus Brown <<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>> wrote:<br>
> ><br>
> >> On Sat, Jul 05, 2014 at 03:01:47PM -0500, Efraim Rodrigues wrote:<br>
> >> > Hi everyone,<br>
> >> ><br>
> >> > Actually, when I tried to install by running 'make test', it returned<br>
> >> the<br>
> >> > following message:<br>
> >> ><br>
> >> > pip2 install --user nose || pip2 install nose<br>
> >> > /bin/sh: pip2: command not found<br>
> >> > /bin/sh: pip2: command not found<br>
> >> ><br>
> >> ><br>
> >> > Even though we have python/2.7 installed, It looks like my system has<br>
> >> > python/2.6 as default. Hence, in order to install 'khmer', I followed<br>
> >> these<br>
> >> > steps:<br>
> >> ><br>
> >> > module load python/2.7<br>
> >> ><br>
> >> > python setup.py install --user<br>
> >> ><br>
> >> > Apparently, it worked to install it locally, however I'm not sure about<br>
> >> any<br>
> >> > additional file or module.<br>
> >><br>
> >> OK, I would suggest running the tests inside of virtualenv. try:<br>
> >><br>
> >> curl -O<br>
> >> <a href="https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.x.y.tar.gz" target="_blank">https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.x.y.tar.gz</a><br>
> >> tar xzf virtualenv*<br>
> >> cd virtualenv-*; python2.7 virtualenv.py ../khmerEnv; cd ..<br>
> >> source khmerEnv/bin/activate<br>
> >><br>
> >> and then 'make test'.<br>
> >><br>
> >> thanks!<br>
> >> --titus<br>
> >><br>
> >><br>
> ><br>
<br>
</div></div><div class="im HOEnZb">--<br>
C. Titus Brown, <a href="mailto:ctb@msu.edu">ctb@msu.edu</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
khmer mailing list<br>
<a href="mailto:khmer@lists.idyll.org">khmer@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/khmer" target="_blank">http://lists.idyll.org/listinfo/khmer</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="font-family:'courier new',monospace;font-size:small">Michael R. Crusoe: Programmer & Bioinformatician </span><a href="mailto:mcrusoe@msu.edu" style="color:rgb(17,85,204);font-family:'courier new',monospace;font-size:small" target="_blank">mcrusoe@msu.edu</a><br style="font-family:'courier new',monospace;font-size:small">
<span style="font-family:'courier new',monospace;font-size:small"> @ the Genomics, Evolution, and Development lab; Michigan State U</span><br style="font-family:'courier new',monospace;font-size:small"><a href="http://ged.msu.edu/" style="color:rgb(17,85,204);font-family:'courier new',monospace;font-size:small" target="_blank">http://ged.msu.edu/</a><span style="font-family:'courier new',monospace;font-size:small"> </span><a href="http://orcid.org/0000-0002-2961-9670" style="color:rgb(17,85,204);font-family:'courier new',monospace;font-size:small" target="_blank">http://orcid.org/0000-0002-2961-9670</a><span style="font-family:'courier new',monospace;font-size:small"> </span><a href="http://twitter.com/biocrusoe" style="color:rgb(17,85,204);font-family:'courier new',monospace;font-size:small" target="_blank">@biocrusoe</a><br>
</div>
</div>