user9013730
user9013730

Reputation:

Python 3.7: pycurl installation on Windows 10

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?

Upvotes: 3

Views: 5245

Answers (1)

firebfm
firebfm

Reputation: 239

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

Upvotes: 3

Related Questions