How to use Python's “easy_install” on Windows … it's not so easy

前端 未结 6 2220
夕颜
夕颜 2020-12-08 02:01

After installing Python 2.7 on Windows XP, then manually setting the %PATH% to python.exe (why won\'t the python installer do this?), then installi

6条回答
  •  攒了一身酷
    2020-12-08 02:23

    One problem is that easy_install is set up to download and install .egg files or source distributions (contained within .tgz, .tar, .tar.gz, .tar.bz2, or .zip files). It doesn't know how to deal with the PyWin32 extensions because they are put within a separate installer executable. You will need to download the appropriate PyWin32 installer file (for Python 2.7) and run it yourself. When you run easy_install again (provided you have it installed right, like in Sergio's instructions), you should see that your winpexpect package has been installed correctly.

    Since it's Windows and open source we are talking about, it can often be a messy combination of install methods to get things working properly. However, easy_install is still better than hand-editing configuration files, for sure.

提交回复
热议问题