PycURL installation on Python 3.7.0 (Windows 10)

自作多情 提交于 2021-01-21 17:29:32

问题


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

Environment

Python 3.7.0
Windows 10 

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:\>

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

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?


回答1:


You have two major options:

  • compile pycurl for Python 3.7 manually (starting point to dig is here)
  • use unofficial binary of pycurl

Latter is much easier.

Most famous site with unofficial binaries is this one. Download whl file of pycurl matching your python version and python architecture from here. Install downloaded file with pip:

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



来源:https://stackoverflow.com/questions/53492993/pycurl-installation-on-python-3-7-0-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!