Having trouble installing pycurl on windows

前端 未结 3 1544
天涯浪人
天涯浪人 2021-01-12 05:30

I\'m having trouble getting pycurl installed on my windows computer. At first I tried pip, but ran into the “Please specify --curl-dir=/path/to/built/libcurl” error, and hav

3条回答
  •  借酒劲吻你
    2021-01-12 05:46

    Try to download sources and build it by yourself: as result you will have to get directories like:

    • libcurl-vc12-x86-release-dll-ipv6-sspi-winssl
      • bin
        • curl.exe
        • libcurl.dll
      • include
        • *.h
      • lib
        • libcurl.lib

    (or you can search for prebuilt binaries/headers with same directory structure) And then you have to point your setup.py script this directory, such as:

    python setup.py install --curl-dir="D:\..\libcurl-vc12-x86-release-dll-ipv6-sspi-winssl
    

    And it will be built successfully.

提交回复
热议问题