2
試圖本地建立GeoDjango內置,但得到一個錯誤:Brewed Python cannot import numpy
安裝GDAL本地:不能導入numpy的
但我可以在解釋器中導入numpy的:
Python 2.7.5 (default, Oct 27 2013, 12:25:46)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.__version__
'1.7.1'
爲什麼我不能brew install gdal
?
admins-macbook:lib Admin$ brew install gdal
gdal: Unsatisfied dependency: numpy
Brewed Python cannot `import numpy`. Install with:
pip-2.7 install numpy
Error: An unsatisfied requirement failed this build.
admins-macbook:lib Admin$ pip-2.7 install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in ./python2.7/site-packages
Cleaning up...
感謝您的任何想法,可能會幫助我geodjango本地工作!