Issue #38 wontfix FAIL - invalid command 'easy_install' (when setuptools is installed to ~/.local)

Sridhar Ratnakumar
created an issue

Try installing Distribute via on a virtualenv created using --no-site-packages. And we get this error:

{{{ sridharr@whymac:~/distribute > bin/python Scanning installed packages Setuptools installation detected at /Users/sridharr/distribute/lib/python2.6/site-packages/setuptools-0.6c9-py2. 6.egg Egg installation Patching... Renaming /Users/sridharr/distribute/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg into /Users/sridharr/distribute/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg.OLD.1251758736.6 Patched done. Relaunching... Scanning installed packages Setuptools installation detected at /Users/sridharr/distribute/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg Egg installation Already patched. Downloading usage: [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: --help [cmd1 cmd2 ...] or: --help-commands or: cmd --help error: invalid command 'easy_install' }}}

Comments (7)

  1. Tarek Ziadé repo owner

    I can't reproduce, I need more information

    • Do you use the located at ?
    • Are you trying to install from the root of the project ? using the latest source ?
  2. Tarek Ziadé repo owner

    Ok I could reproduce this problem.

    It's a Virtualenv problem : if you install virtualenv using --no-site-packages, the distributions installed using --user will be present in the path nevertheless.

    So, --no-site-packages doesn't work with user installed package.

    I will post a mail to the virtualenv ML, and mark this issue as invalid (but I will also detail this problem in the FAQ in README.txt)

  3. Rémy HUBSCHER

    I had this problem today.

    What I did is to remove the virtualenv repository then I used:

    $ sudo -s 
    # pip uninstall setuptools
    # curl | python

    Then I start again the virtualenv creation

  4. Log in to comment