gpt4 book ai didi

python - 不能 easy_install ssl 模块

转载 作者:行者123 更新时间:2023-11-28 23:05:00 24 4
gpt4 key购买 nike

在执行 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. 访问:http://sourceforge.net/project/showfiles.php?group_id=2435

  2. 下载并运行:自动 MinGW 安装程序(确保检查基础、g++ 和 Make)

  3. 更新您的 PATH:将 C:\mingw\bin 目录添加到系统 PATH

  4. 创建(或编辑):C:\Python25\Lib\distutils\distutils.cfg 并添加以下两行:

    [构建]

    编译器=mingw32

在这里找到:

http://old.nabble.com/Installing-PyXML-problems-td12405796.html

关于python - 不能 easy_install ssl 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6816935/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com