How to install easy_install in Python 2.7.1 on Windows 7

前端 未结 7 1586
半阙折子戏
半阙折子戏 2021-01-30 13:44

I have installed Python 2.7.1 on Windows 7, but I am unable to install easy_install. Please help me.

相关标签:
7条回答
  • 2021-01-30 14:30

    for 32-bit Python, the installer is here. after you run the installer, you will have easy_install.exe in your \Python27\Scripts directory

    if you are looking for 64-bit installers, this is an excellent resource:

    http://www.lfd.uci.edu/~gohlke/pythonlibs/

    the author has installers for both Setuptools and Distribute. Either one will give you easy_install.exe

    0 讨论(0)
  • 2021-01-30 14:36

    I usually just run ez_setup.py. IIRC, that works fine, at least with UAC off.

    It also creates an easy_install executable in your Python\scripts subdirectory, which should be in your PATH.

    UPDATE: I highly recommend not to bother with easy_install anymore! Jump right to pip, it's better in every regard!
    Installation is just as simple: from the installation instructions page, you can download get-pip.py and run it. Works just like the ez_setup.py mentioned above.

    0 讨论(0)
  • 2021-01-30 14:40

    I recently used ez_setup.py as well and I did a tutorial on how to install it. The tutorial has snapshots and simple to follow. You can find it below:

    Installing easy_install Using ez_setup.py

    I hope you find this helpful.

    0 讨论(0)
  • 2021-01-30 14:42

    That tool is part of the setuptools (now called Distribute) package. Install Distribute. Of course you'll have to fetch that one manually.

    http://pypi.python.org/pypi/distribute#installation-instructions

    0 讨论(0)
  • 2021-01-30 14:42

    I know this isn't a direct answer to your question but it does offer one solution to your problem. Python 2.7.9 includes PIP and SetupTools, if you update to this version you will have one solution to your problem.

    0 讨论(0)
  • 2021-01-30 14:44

    Look for the official 2.7 setuptools installer (which contains easy_install). You only need to install from sources for windows 64 bits.

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