Determining version of easy_install/setuptools

后端 未结 3 416
难免孤独
难免孤独 2020-12-29 01:38

I\'m trying to install couchapp, which uses easy_install - and is quite explicit in stating a particular version of easy_install/setuptools is needed: 0.6c6. I seem to have

相关标签:
3条回答
  • 2020-12-29 01:57

    On Windows, where Python is in the Path:

    python -m easy_install --version
    

    For me, I get setuptools 7.0 as the response.

    0 讨论(0)
  • 2020-12-29 02:01

    One way would be to look at the actual source file for easy_install. Do

    which easy_install
    

    to see where it's located, and then use that path in

    less path/to/easy_install
    

    The second line in my easy_install script says:

    # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.6c11','console_scripts','easy_install'
    

    which suggests that I have easy_install version 0.6c11.

    0 讨论(0)
  • 2020-12-29 02:09

    This seems to get a lot of hits from google, so I thought I'd update for those folks. I was able to do:

    easy_install --version
    

    which produced the output

    setuptools 3.4.3
    

    I believe this only works for some (newer?) versions of setuptools

    0 讨论(0)
提交回复
热议问题