我想在我的Mac機上安裝numpy。 無論我嘗試,我最終想經營我的Python代碼在Mac OSX上安裝numpy(雪豹)
import numpy as np
File "/Library/Python/2.6/site-packages/numpy-2.0.0.dev_26aa3cf_20110808-py2.7-macosx-
10.7-x86_64.egg/numpy/__init__.py", line 137, in <module>
import add_newdocs
File "/Library/Python/2.6/site-packages/numpy-2.0.0.dev_26aa3cf_20110808-py2.7-macosx-
10.7-x86_64.egg/numpy/add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "/Library/Python/2.6/site-packages/numpy-2.0.0.dev_26aa3cf_20110808-py2.7-macosx-
10.7-x86_64.egg/numpy/lib/__init__.py", line 4, in <module>
from type_check import *
File "/Library/Python/2.6/site-packages/numpy-2.0.0.dev_26aa3cf_20110808-py2.7-macosx-
10.7-x86_64.egg/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/Library/Python/2.6/site-packages/numpy-2.0.0.dev_26aa3cf_20110808-py2.7-macosx-
10.7-x86_64.egg/numpy/core/__init__.py", line 5, in <module>
import multiarray
ImportError: dlopen(/Library/Python/2.6/site-packages/numpy-2.0.0.dev_26aa3cf_20110808-py2.7-
macosx-10.7-x86_64.egg/numpy/core/multiarray.so, 2): Symbol not found: _PyCapsule_Import
Referenced from: /Library/Python/2.6/site-packages/numpy-2.0.0.dev_26aa3cf_20110808-py2.7-macosx-10.7-x86_64.egg/numpy/core/multiarray.so
Expected in: flat namespace
in /Library/Python/2.6/site-packages/numpy-2.0.0.dev_26aa3cf_20110808-py2.7-macosx-
10.7-x86_64.egg/numpy/core/multiarray.so
而且當我在終端輸入的Python需要我到Python 2.6.1版本時收到此錯誤。 我該如何解決這個問題?