Thanks. I understand what you&#39;re saying, but personally I&#39;d like to have Ubuntu own site-packages, and have everything required for each project installed via VirtualEnv: <div><br></div><div>- A large part of a lot of OSs (particularly Linux and OS X) uses python, and therefore site-packages, and there&#39;s been a few cases of apps trashing site packages that were used by the OS (this isn&#39;t Python specific, and could just as well occur with Ruby gems if you were using puppet).</div>

<div><br></div><div>- I like the Ubuntu security updates and knowing everything outside my own development environment is taken care of</div><div><br></div><div>- My app can still get whatever it wants inside the virtualenv, and I have the ease of deployment associated with having and independent site-packages.</div>

<div><br></div><div>Cheers (and thanks again for your help),</div><div><br></div><div>Mike</div><div><br><div><div><div><div><div><br><div class="gmail_quote">On Tue, Mar 30, 2010 at 10:14 PM, Ed Stafford <span dir="ltr">&lt;<a href="mailto:walter.stafford@carbonsixty.co.uk">walter.stafford@carbonsixty.co.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Mike,<br><br>Glad it worked for you. Although the Ubuntu team does a fine job of package management I&#39;m still a bit hesitant to use their python packages. It&#39;s easy enough using vanilla python to get everything you need going. In the future you can do the following just as easily.<br>


<br>`wget <a href="http://peak.telecommunity.com/dist/ez_setup.py%60" target="_blank">http://peak.telecommunity.com/dist/ez_setup.py`</a><br>`sudo python ez_setup.py`<br>`sudo easy_install pip virtualenv virtualenvwrapper`<br>

 <br>Then continue on your way using virtual environments and pip.<br>
<br>Cheers,<br><font color="#888888">-Ed</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On 30 March 2010 21:38, Mike MacCana <span dir="ltr">&lt;<a href="mailto:mike.maccana@gmail.com" target="_blank">mike.maccana@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div>Walter, you are a god amongst men.</div><div><br></div><div>It turns out this is a bug in Ubuntu 10.4&#39;s virtualenv package. See </div><div><a href="https://bugs.launchpad.net/ubuntu/+source/python-virtualenv/+bug/517390" target="_blank">https://bugs.launchpad.net/ubuntu/+source/python-virtualenv/+bug/517390</a></div>




<div><br></div><div>But your advice has successfully worked around it.</div><div><br></div><div>For anyone else wanting a quick method to get pip + virtualenv running on Ubuntu 10,4, here&#39;s what I did to get things working:</div>




<div><br></div>1. aptitude install python-virtualenv and python-setuptools packages<div>2. easy_install pip</div><div>3. easy_install virtualenv-wrapper</div><div>4. mkvirtualenv &lt;project&gt;</div><div>5. pip -E &lt;project&gt; install &lt;python module&gt;</div>




<div><br></div><font color="#888888"><div>Mike</div></font><div><div></div><div><br><div class="gmail_quote">On Tue, Mar 30, 2010 at 9:19 PM, Ed Stafford <span dir="ltr">&lt;<a href="mailto:walter.stafford@carbonsixty.co.uk" target="_blank">walter.stafford@carbonsixty.co.uk</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi Mike,<br><br>You should really use easy_install to install pip under your main python site-packages along with virtualenv/virtualenvwrapper and then use PIP after you mkvirtualenv. PIP is aware of virtual environments so you shouldn&#39;t have any trouble in this regard.<br>





<br>Basically, install PIP in your global (main) site-packages, not your virtual environment.<br><br>Another nice lib to use is yolk, which you can use to spit out what and where various python packages are installed.<br>





<br>Hope this helps.<br><br>Cheers,<br>-Ed<br><br><div class="gmail_quote"><div><div></div><div>On 30 March 2010 21:12, Mike MacCana <span dir="ltr">&lt;<a href="mailto:mike.maccana@gmail.com" target="_blank">mike.maccana@gmail.com</a>&gt;</span> wrote:<br>




</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>
Hey UK Pythonistas,<div><br></div><div>In accordance with the new directives issed at <a href="http://s3.pixane.com/python_comrades.png" target="_blank">http://s3.pixane.com/python_comrades.png</a>, I&#39;ve installed virtualenv and virtualenv_wrapper, made, and activated a project like so:</div>







<div><br></div><div><div># mkvirtualenv imeveryone</div><div># workon imeveryone</div></div><div><br></div><div>However using the easy_install inside the virtualenv to install pip doesn&#39;t seem to be working. But easy_install inside the virtualenv does successfully install other packages (eg, I tried installing ipython and it was fine). </div>







<div><br></div><div>Am I doing something wrong? I&#39;m not really experienced with the various Python packaging tools.</div><div><br></div><div>[Note the system is Ubuntu 10.04 beta, but I don&#39;t think that&#39;s the cause of the prob]</div>







<div><div><div><div><br></div><div>Full output is below.</div><div><br></div><div>Thanks for your help, much appreciated,</div></div></div><div><br></div><div>Mike</div></div><div><div><br></div><div><div>(imeveryone)root@mike-desktop:~# easy_install pip</div>







<div>/root/.virtualenvs/imeveryone/bin/easy_install:5: UserWarning: Module pkg_resources was already imported from /root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py, but /usr/lib/python2.6/dist-packages is being added to sys.path</div>







<div>  from pkg_resources import load_entry_point</div><div>/root/.virtualenvs/imeveryone/bin/easy_install:5: UserWarning: Module site was already imported from /root/.virtualenvs/imeveryone/lib/python2.6/site.pyc, but /usr/lib/python2.6/dist-packages is being added to sys.path</div>







<div>  from pkg_resources import load_entry_point</div><div>Searching for pip</div><div>Reading <a href="http://pypi.python.org/simple/pip/" target="_blank">http://pypi.python.org/simple/pip/</a></div><div>Reading <a href="http://pip.openplans.org" target="_blank">http://pip.openplans.org</a></div>







<div>Best match: pip 0.6.3</div><div>Downloading <a href="http://pypi.python.org/packages/source/p/pip/pip-0.6.3.tar.gz#md5=0602fa9179cfaa98e41565d4a581d98c" target="_blank">http://pypi.python.org/packages/source/p/pip/pip-0.6.3.tar.gz#md5=0602fa9179cfaa98e41565d4a581d98c</a></div>







<div>Processing pip-0.6.3.tar.gz</div><div>Running pip-0.6.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-bgHiZO/pip-0.6.3/egg-dist-tmp-9OS3pv</div><div>Traceback (most recent call last):</div><div>  File &quot;/root/.virtualenvs/imeveryone/bin/easy_install&quot;, line 8, in &lt;module&gt;</div>







<div>    load_entry_point(&#39;setuptools==0.6c9&#39;, &#39;console_scripts&#39;, &#39;easy_install&#39;)()</div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py&quot;, line 1671, in main</div>







<div>    </div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py&quot;, line 1659, in with_ei_usage</div><div>    </div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py&quot;, line 1675, in &lt;lambda&gt;</div>







<div>    </div><div>  File &quot;/usr/lib/python2.6/distutils/core.py&quot;, line 152, in setup</div><div>    dist.run_commands()</div><div>  File &quot;/usr/lib/python2.6/distutils/dist.py&quot;, line 975, in run_commands</div>







<div>    self.run_command(cmd)</div><div>  File &quot;/usr/lib/python2.6/distutils/dist.py&quot;, line 995, in run_command</div><div>    cmd_obj.run()</div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py&quot;, line 211, in run</div>







<div>    </div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py&quot;, line 446, in easy_install</div><div>    </div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py&quot;, line 476, in install_item</div>







<div>    </div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py&quot;, line 655, in install_eggs</div><div>    </div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py&quot;, line 930, in build_and_install</div>







<div>    </div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py&quot;, line 919, in run_setup</div><div>    </div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py&quot;, line 27, in run_setup</div>







<div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py&quot;, line 63, in run</div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py&quot;, line 29, in &lt;lambda&gt;</div>







<div>  File &quot;setup.py&quot;, line 48, in &lt;module&gt;</div><div>  File &quot;/usr/lib/python2.6/distutils/core.py&quot;, line 113, in setup</div><div>    _setup_distribution = dist = klass(attrs)</div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py&quot;, line 223, in __init__</div>







<div>  File &quot;/usr/lib/python2.6/distutils/dist.py&quot;, line 270, in __init__</div><div>    self.finalize_options()</div><div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py&quot;, line 256, in finalize_options</div>







<div>  File &quot;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py&quot;, line 1918, in load</div><div>    while parts and parts[-1]==&#39;00000000&#39;:</div><div>ImportError: &lt;module &#39;setuptools.dist&#39; from &#39;/root/.virtualenvs/imeveryone/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/dist.py&#39;&gt; has no &#39;check_packages&#39; attribute</div>







<div><br></div></div></div>
<br></div></div>_______________________________________________<br>
python-uk mailing list<br>
<a href="mailto:python-uk@python.org" target="_blank">python-uk@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-uk" target="_blank">http://mail.python.org/mailman/listinfo/python-uk</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
python-uk mailing list<br>
<a href="mailto:python-uk@python.org" target="_blank">python-uk@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-uk" target="_blank">http://mail.python.org/mailman/listinfo/python-uk</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
python-uk mailing list<br>
<a href="mailto:python-uk@python.org" target="_blank">python-uk@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-uk" target="_blank">http://mail.python.org/mailman/listinfo/python-uk</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
python-uk mailing list<br>
<a href="mailto:python-uk@python.org">python-uk@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-uk" target="_blank">http://mail.python.org/mailman/listinfo/python-uk</a><br>
<br></blockquote></div><br></div></div></div></div></div></div>