我使用IPython和熊貓來做一些數字處理,並且最近安裝了Anaconda來嘗試一些東西。我沒有建立virtualenv(我現在吸取了教訓,爲什麼這是非常有價值的),它一定調整了一些東西,現在我得到一個錯誤,將熊貓引入我的腳本。到目前爲止,我已經能夠發現,熊貓導入導致了一個英特爾圖書館libmkl_intel_lp64.dylib
的一些麻煩,但沒有太多。Anacondas安裝與IPython pandas導入混淆?
對不起,沒有人可以提供一些見解如何解決方案?謝謝!
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/Users/ibebian/anaconda/lib/python2.7/site-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
202 else:
203 filename = fname
--> 204 __builtin__.execfile(filename, *where)
/Users/ibebian/Desktop/DB-Analyzer/pandas_test.py in <module>()
2
3
----> 4 from pandas import Series, DataFrame
5 import pandas as pd
6 from datetime import datetime, timedelta
/Users/ibebian/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/__init__.py in <module>()
4
5 try:
----> 6 from . import hashtable, tslib, lib
7 except Exception: # pragma: no cover
8 import sys
/Users/ibebian/Desktop/DB-Analyzer/numpy.pxd in init pandas.hashtable (pandas/hashtable.c:19547)()
/Users/ibebian/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/__init__.pyc in <module>()
141 return loader(*packages, **options)
142
--> 143 import add_newdocs
144 __all__ = ['add_newdocs']
145
/Users/ibebian/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/add_newdocs.py in <module>()
7 # core/fromnumeric.py, core/defmatrix.py up-to-date.
8
----> 9 from numpy.lib import add_newdoc
10
11 ###############################################################################
/Users/ibebian/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/__init__.py in <module>()
11
12 import scimath as emath
---> 13 from polynomial import *
14 #import convertcode
15 from utils import *
/Users/ibebian/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/polynomial.py in <module>()
15 from numpy.lib.function_base import trim_zeros, sort_complex
16 from numpy.lib.type_check import iscomplex, real, imag
---> 17 from numpy.linalg import eigvals, lstsq, inv
18
19 class RankWarning(UserWarning):
/Users/ibebian/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/__init__.py in <module>()
46 from info import __doc__
47
---> 48 from linalg import *
49
50 from numpy.testing import Tester
/Users/ibebian/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/linalg.py in <module>()
21 isfinite, size, finfo, absolute, log, exp
22 from numpy.lib import triu
---> 23 from numpy.linalg import lapack_lite
24 from numpy.matrixlib.defmatrix import matrix_power
25 from numpy.compat import asbytes
ImportError: dlopen(/Users/ibebian/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so, 2): Library not loaded: @rpath/libmkl_intel_lp64.dylib
Referenced from: /Users/ibebian/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
Reason: image not found
在Anaconda中不要使用'virtualenv',使用conda環境。 – asmeurer