Windows 上的 pycurl 安装
我无法在 Windows 上的 Python2.6 上安装 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
知道这个错误是什么以及如何解决这个问题吗?
I am not able to install pycurl on Windows on Python2.6. Getting following error:
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
Any idea what is this error about and how to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Andelf 的答案在我的 Win 7 x64 机器上不起作用,但是 Christoph Gohlke 的网站有一个适合我的软件包。
Andelf's answer didn't work on my Win 7 x64 machine, but Christoph Gohlke's site has a package that works for me.
http://wiki.woodpecker.org.cn/moin/PyCurl?action=AttachFile&do=view&target=pycurl-7.20.1-bin-win32-py26.zip
解压并全部复制到您的站点包
:)
http://wiki.woodpecker.org.cn/moin/PyCurl?action=AttachFile&do=view&target=pycurl-7.20.1-bin-win32-py26.zip
unzip it and copy all to your site-packages
:)
您可以通过提供的特定于 win32 的 二进制文件 在 Windows 上安装 pyCURL。
You install pyCURL on Windows via the provided win32-specific binaries.
这是网址,
这个网站的包很岩石 http://www.lfd.uci .edu/~gohlke/pythonlibs/#pycurl
Here is the url,
this sites packages are rocks http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl
我今天为 urlgrabber 3.9 构建了没有 ssl 的 pycurl 并且它有效。我使用的目录是 c:\Pycurl-7.19.0 ,与 --curl-dir 相同,如 setup.py 中给定的 CURL_DIR ,但使用 vc express 08 从源中新鲜编译的 libcurl.lib ,在相应位置的目录内即它还需要一些包含文件。尝试在上述步骤后运行下一个错误或仅检查 setup.py。
I built pycurl without ssl today for urlgrabber 3.9 and it worked. the dir i used was c:\Pycurl-7.19.0 and same as --curl-dir ,as given CURL_DIR in setup.py, but with fresh compiled libcurl.lib from sources using vc express 08, inside the dir in respective places ie it needs some include files also. try running after the step above for the next err or just check setup.py.