Python kann nicht formschön importieren

Ich verwende Python3.4 unter Mac OSX und versuche, Shapely zu importieren. Das kann ich aber nicht. Hier ist mein Traceback:

    from shapely.geometry import Point
  File "/Users/tc9/Library/Python/3.4/lib/python/site-packages/shapely/geometry/__init__.py", line 4, in <module>
    from .base import CAP_STYLE, JOIN_STYLE
  File "/Users/tc9/Library/Python/3.4/lib/python/site-packages/shapely/geometry/base.py", line 9, in <module>
    from shapely.coords import CoordinateSequence
  File "/Users/tc9/Library/Python/3.4/lib/python/site-packages/shapely/coords.py", line 8, in <module>
    from shapely.geos import lgeos
  File "/Users/tc9/Library/Python/3.4/lib/python/site-packages/shapely/geos.py", line 74, in <module>
    _lgeos = load_dll('geos_c', fallbacks=alt_paths)
  File "/Users/tc9/Library/Python/3.4/lib/python/site-packages/shapely/geos.py", line 53, in load_dll
    libname, fallbacks or []))
OSError: Could not find library geos_c or load any of its variants ['/Library/Frameworks/GEOS.framework/Versions/Current/GEOS', '/opt/local/lib/libgeos_c.dylib']

Ich glaube, ich muss den GEOS_LIBRARY_PATH einstellen, bin mir aber nicht sicher, auf was ich ihn einstellen soll.

Hier ist ein ls von/Users/tc9/homebrew/Cellar/geos/3.4.2/lib nachdem ich gebraut habe, installiere Geos:

libgeos-3.4.2.dylib
libgeos.dylib
libgeos_c.a
libgeos.a
libgeos_c.1.dylib
libgeos_c.dylib

Ich habe mein @ bearbeitet und bezog~/.profile, aber das hat die Sache nicht gelöst:

GEOS_LIBRARY_PATH="/Users/tc9/homebrew/Cellar/geos/3.4.2"
export GEOS_LIBRARY_PATH

Kann mir jemand einen Hinweis auf eine Lösung geben, wie man es formschön zum Importieren bringt? Vielen Dank

Antworten auf die Frage(1)

Ihre Antwort auf die Frage