无法使用easy_install安装ssl模块
当我执行 easy_install ssl
时,出现了以下错误:
C:\Windows\system32>easy_install ssl
Searching for ssl
Reading http://pypi.python.org/simple/ssl/
Reading http://docs.python.org/dev/library/ssl.html
Best match: ssl 1.15
Downloading http://pypi.python.org/packages/source/s/ssl/ssl-1.15.tar.gz#md5=81ea8a1175e437b4c769ae65b3290e0c
Processing ssl-1.15.tar.gz
Running ssl-1.15\setup.py -q bdist_egg --dist-dir c:\users\fipethor\appdata\local\temp\easy_install-v2d68a\ssl-1.15\egg-dist-tmp-klfhbm
error: Setup script exited with error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
1 个回答
4
访问这个链接: http://sourceforge.net/project/showfiles.php?group_id=2435
下载并运行:自动化的 MinGW 安装程序(确保你勾选了基础、g++ 和 Make 这几个选项)
更新你的 PATH:把 C:\mingw\bin 这个文件夹添加到系统的 PATH 里
创建(或编辑)文件:C:\Python25\Lib\distutils\distutils.cfg,并添加以下两行:
[build]
compiler=mingw32
可以在这里找到:
http://old.nabble.com/Installing-PyXML-problems-td12405796.html