PycURL installation on Python 3.7.0 (Windows 10)

Sab*_*ina 6 python pycurl winforms python-3.x

I'm having a problem to install PycURL on the following environment

Environment

Python 3.7.0
Windows 10 
Run Code Online (Sandbox Code Playgroud)

Problem

C:\>pip install pycurl
Collecting pycurl
  Using cached https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz
    Complete output from command python setup.py egg_info:
    Please specify --curl-dir=/path/to/built/libcurl

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 10 in C:\Users\user01\AppData\Local\Temp\pip-install-xrandomx\pycurl\

C:\>
Run Code Online (Sandbox Code Playgroud)

According to the official site ... http://pycurl.io/docs/latest/install.html#official-packages

Currently official PycURL packages are built against the following Python versions:

2.7.10
3.2.5
3.3.5
3.4.3
3.5.2
3.6.0
Run Code Online (Sandbox Code Playgroud)

Does it mean I have to uninstall current Python 3.7.0 and install 3.6.0 to make it works?

Is there any alternative?

Mik*_*mov 7

您有两个主要选择:

  • 手动为 Python 3.7 编译 pycurl(挖掘的起点在这里
  • 使用 pycurl 的非官方二进制文件

后者要容易得多。

最著名的带有非官方二进制文件的站点就是这个站点。whl这里下载与您的 Python 版本和 Python 架构相匹配的 pycurl 文件。使用 pip 安装下载的文件:

pip install C:/path/to/downloaded/file/pycurl?7.43.1?cp37?cp37m?win_amd64.whl