尝试在本地设置 geodjango,但出现错误:Brewed Python cannot import 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 在本地工作的想法!