Skip to content

Instantly share code, notes, and snippets.

@beOn
Created February 17, 2013 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beOn/4970435 to your computer and use it in GitHub Desktop.
Save beOn/4970435 to your computer and use it in GitHub Desktop.
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