Why can't `virtualenv` find `pkg_resources`?
I'm trying to use virtualenv in Ubuntu to install a local virtual Python environment. When I run the shell command: $ virtualenv ./virt_python It throws an exception that it can't import pkg_resources . But when I open a Python shell and from pkg_resources import load_entry_point it runs fine. For reference, the complete stacktrace is below. $ virtualenv ./virt_python New python executable in ./virt_python/bin/python Installing setuptools............done. Installing pip....... Complete output from command /home/rpsharp/local/...hon/bin/easy_install /usr/local/lib/pytho...pport/pip-1.1.tar.gz: