pyspider icon indicating copy to clipboard operation
pyspider copied to clipboard

Command "python setup.py egg_info" failed with error code 1

Open yychenlong2012 opened this issue 7 years ago • 6 comments

When I install pyspider,the following error occurred.

Complete output from command python setup.py egg_info: Using curl-config (libcurl 7.54.0) Traceback (most recent call last): File "", line 1, in File "/private/tmp/pip-install-Ei7TZj/pycurl/setup.py", line 913, in ext = get_extension(sys.argv, split_extension_source=split_extension_source) File "/private/tmp/pip-install-Ei7TZj/pycurl/setup.py", line 582, in get_extension ext_config = ExtensionConfiguration(argv) File "/private/tmp/pip-install-Ei7TZj/pycurl/setup.py", line 99, in init self.configure() File "/private/tmp/pip-install-Ei7TZj/pycurl/setup.py", line 316, in configure_unix specify the SSL backend manually.''') main.ConfigurationError: Curl is configured to use SSL, but we have not been able to determine which SSL backend it is using. Please see PycURL documentation for how to specify the SSL backend manually.

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-install-Ei7TZj/pycurl/

Online solutions are ineffective.

yychenlong2012 avatar Aug 09 '18 01:08 yychenlong2012

Please show me you environment

djytwy avatar Aug 09 '18 02:08 djytwy

Maybe you can run: apt-get install libcurl4-openssl-dev and then have a try again.

Duanfuyao avatar Aug 28 '18 03:08 Duanfuyao

I had to set the SSL library before installing (Mac OS 10.13.6 (17G65)).

export PYCURL_SSL_LIBRARY=openssl
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include

Found answer here: https://stackoverflow.com/a/51959349/3035556.

SanderWind avatar Oct 13 '18 21:10 SanderWind

xselect-code install

yuanyinghao avatar Nov 17 '18 02:11 yuanyinghao

Solve it by (Mac os System) @SanderWind ths

KFLai avatar Apr 28 '19 07:04 KFLai

You should install pycurl.

If you are in a Windows environment,You can download the corresponding version from the link below.

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl

fairyly avatar Jul 21 '19 06:07 fairyly