Skip to content

Instantly share code, notes, and snippets.

@beOn
Created Feb 17, 2013
Embed
What would you like to do?
installing Shapely without geos_c
# This is what happens when I `sudo pip install Shapely`.
# (Shapely is best if you have libgeos_c, but you can install without it.)
---------------------------------------------
$> sudo pip install Shapely
...
( yada yada yada, setup.py egg_info -> setup.py install for Shapely )
( then after installation, we get this message: )
...
clang: warning: argument unused during compilation: '-mno-fused-madd'
shapely/speedups/_speedups.c:235:10: fatal error: 'geos_c.h' file not found
#include "geos_c.h"
^
1 error generated.
command 'clang' failed with exit status 1
Warning: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
I'm retrying the build without the C extension now.
Warning: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.
Successfully installed Shapely
Cleaning up...
$>
---------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment