3

I've been trying to install pycurl but keep getting the following error.

C:\>pip install pycurl
Collecting pycurl
  Using cached https://files.pythonhosted.org/packages/e1/e2/xxx/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\sabrina\AppData\Local\Temp\pip-install-xxx\pycurl\

C:\>

This is Python 3.7.0 running on Windows 10.

C:\>py -V
Python 3.7.0

I've been searching around and found the following question, but he's using Python 2.6 pycurl installation on Windows

I've also found the following link https://pypi.org/project/pycurl/7.19.5.1/#files

Unfortunately, the binary installer only supports v3.4.

Is there a way to make this works?

  • 1
    There are [newer installers](https://pypi.org/project/pycurl/#files). Also, that an installer has, say, `py3.6` in its name doesn't necessarily mean it won't work for Python 3.7. – ForceBru Jan 20 '19 at 14:36
  • Just downloaded ... here is the error. `Python version 3.6 required, which was not found in the registry` –  Jan 20 '19 at 14:48
  • Welp, then you'd probably have to build libcurl yourself or find a prebuilt version somewhere (probably [here](https://curl.haxx.se/download.html)?). – ForceBru Jan 20 '19 at 14:52

1 Answers1

2

Compile pycurl for Python 3.7 manually or use unofficial binary of pycurl:

Download whl file of pycurl matching your python version and python architecture from here. Open the directory in cmd and install with pip:

pip install pycurl-7.43.0.4-cp37-cp37m-win32.whl
firebfm
  • 203
  • 1
  • 3
  • 9