pycurl installation on Windows

2019-03-09 17:05发布

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?

5条回答
我只想做你的唯一
2楼-- · 2019-03-09 17:18

You install pyCURL on Windows via the provided win32-specific binaries.

查看更多
Fickle 薄情
3楼-- · 2019-03-09 17:24

Here is the url,

this sites packages are rocks http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl

查看更多
叛逆
4楼-- · 2019-03-09 17:27

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.

查看更多
叼着烟拽天下
5楼-- · 2019-03-09 17:34

Andelf's answer didn't work on my Win 7 x64 machine, but Christoph Gohlke's site has a package that works for me.

查看更多
登录 后发表回答