【问题标题】:pycurl installation on Windows在 Windows 上安装 pycurl
【发布时间】:2009-10-17 17:57:36
【问题描述】:

我无法在 Python2.6 上的 Windows 上安装 pycurl。出现以下错误:

C:\Documents and Settings\vijayendra\Desktop\Downloads\pycurl-7.19.0>python setup.py install --curl-dir="C:\Documents and Settings\vijayendra\Desktop\Downloads\
curl-7.19.5-win32-ssl\curl-7.19.5"
Using curl directory: C:\Documents and Settings\vijayendra\Desktop\Downloads\curl-7.19.5-win32-ssl\curl-7.19.5
Traceback (most recent call last):
  File "setup.py", line 210, in <module>
    assert os.path.isfile(o), o
AssertionError: C:\Documents and Settings\vijayendra\Desktop\Downloads\curl-7.19.5-win32-ssl\curl-7.19.5\lib\libcurl.lib

知道这个错误是什么以及如何解决这个问题吗?

【问题讨论】:

  • 同样的问题:pycurl 开发人员没有发现在 windows 上支持 python 2.6 有用(在一般发布后一年多!)。我们不会再使用这个库了。

标签: python libcurl pycurl


【解决方案1】:

Andelf 的回答在我的 Win 7 x64 机器上不起作用,但 Christoph Gohlke's site 有一个适合我的包。

【讨论】:

  • +1 用于提供实际有效的答案。 Christop Gohlke 的网站有用于 32 位和 64 位以及 python 2.6 和 python 2.7 的 PycURL win32 exe。
  • 在使用 Gohlke 的 PyCurl 安装程序后,UrlGrabber 安装对我来说就像一个冠军。
  • @RossFabricant - 我为 64 位 Python 2.7 下载了 PycURL,但在尝试导入 pycurl 时收到以下消息 ImportError: DLL load failed: The specified procedure could not be found.。你知道我需要做什么吗?
【解决方案2】:

【讨论】:

  • 使用下面答案中的安装程序
【解决方案3】:

您通过提供的特定于 win32 的binaries 在 Windows 上安装 pyCURL。

【讨论】:

  • pyCURL 没有 python2.6 特定的 exe :(
【解决方案4】:

这是网址,

这个网站的包是石头http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl

【讨论】:

    【解决方案5】:

    我今天为 urlgrabber 3.9 构建了没有 ssl 的 pycurl,它工作正常。我使用的目录是 c:\Pycurl-7.19.0 和 --curl-dir 相同,如 setup.py 中给定的 CURL_DIR,但使用 vc express 08 从源代码中新编译的 libcurl.lib,在相应位置的目录内即它也需要一些包含文件。尝试在上述步骤之后运行下一个错误或检查 setup.py。

    【讨论】:

    • 我们中的一些人正在使用 python,因为我们没有 C。所以从源代码重新编译以及最新版本所需的一切(Windows 上的最后一个 pycurl 是从 2008 年开始的)比我们预期的要多一个支持的绑定... YMMV
    猜你喜欢
    • 2013-11-02
    • 2019-04-28
    • 2019-06-14
    • 2021-07-31
    • 2015-04-01
    • 1970-01-01
    • 2011-02-10
    • 1970-01-01
    相关资源
    最近更新 更多