水蟒安装与IPython熊猫进口有冲突?
我正在使用IPython和pandas做一些数字运算,最近安装了Anaconda来尝试一些东西。我没有设置virtualenv(我现在学到了为什么它如此有价值的教训),它一定是做了一些调整,现在我在将pandas导入脚本时出错了。到目前为止,我发现pandas导入在英特尔库水蟒安装与IPython熊猫进口有冲突?,python,numpy,pandas,anaconda,Python,Numpy,Pandas,Anaconda,我正在使用IPython和pandas做一些数字运算,最近安装了Anaconda来尝试一些东西。我没有设置virtualenv(我现在学到了为什么它如此有价值的教训),它一定是做了一些调整,现在我在将pandas导入脚本时出错了。到目前为止,我发现pandas导入在英特尔库libmkl_intel_lp64.dylib中引起了一些问题,但仅此而已 很抱歉没有人知道,有人能提供一些关于如何解决问题的见解吗?谢谢 -------------------------------------------
libmkl_intel_lp64.dylib
中引起了一些问题,但仅此而已
很抱歉没有人知道,有人能提供一些关于如何解决问题的见解吗?谢谢
---------------------------------------------------------------------------
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
---------------------------------------------------------------------------
ImportError回溯(最近一次呼叫最后一次)
/execfile(fname,*其中)中的Users/ibebian/anaconda/lib/python2.7/site-packages/IPython/utils/py3compat.pyc
202其他:
203 filename=fname
-->204 \uuuuu内置\uuuuuu.execfile(文件名,*其中)
/Users/ibebian/Desktop/DB Analyzer/pandas_test.py in()
2.
3.
---->4来自熊猫进口系列,数据帧
5进口熊猫作为pd
6从日期时间导入日期时间,时间增量
/Users/ibebian/Library/enthund/Canopy_64bit/User/lib/python2.7/site-packages/pandas/__-init__;.py in()
4.
5.尝试:
---->6从。导入哈希表、tslib、lib
7例外情况除外:#pragma:无保险
8进口系统
/init pandas.hashtable中的Users/ibebian/Desktop/DB Analyzer/numpy.pxd(pandas/hashtable.c:19547)()
/Users/ibebian/Library/enthund/Canopy_64bit/User/lib/python2.7/site-packages/numpy/_-init__.pyc-in()
141返回加载器(*包,**选项)
142
-->143导入添加新文档
144 uuu all uuu=['add\u newdocs']
145
/Users/ibebian/Library/enthund/Canopy_64bit/User/lib/python2.7/site-packages/numpy/add_newdocs.py in()
7#core/fromnumeric.py,core/defmatrix.py为最新版本。
8.
---->9从numpy.lib导入添加新文档
10
11 ###############################################################################
/Users/ibebian/Library/enthund/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/__-init__;.py in()
11
12将scimath导入为emath
--->13.从国外进口*
14#导入代码
15来自utils进口*
/Users/ibebian/Library/enthund/Canopy_64bit/User/lib/python2.7/site-packages/numpy/lib/polymon.py in()
15从numpy.lib.function_base导入修剪零,排序复杂
16从numpy.lib.type_检查导入iscomplex、real、imag
--->17来自内华达州lstsq numpy.linalg import eigvals
18
19级兰克瓦宁(用户警告):
/Users/ibebian/Library/enthund/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/__-init__;.py in()
46从信息导入文件__
47
--->48来自linalg进口公司*
49
50来自numpy.testing进口测试仪
/Users/ibebian/Library/enthund/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/linalg.py in()
21是有限的、大小、finfo、绝对值、日志、exp
22从numpy.lib导入triu
--->23从numpy.linalg进口lapack_lite
24来自numpy.matrixlib.defmatrix导入矩阵\u电源
25从numpy.compat导入为字节
导入错误:dlopen(/Users/ibebian/Library/enthund/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so,2):未加载库:@rpath/libmkl_intel_lp64.dylib
引用自:/Users/ibebian/Library/enthught/Canopy_64bit/User/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so
原因:找不到图像
检查环境变量PATH
,其中应该包含安装Anaconda的目录的一些路径,您必须将其删除,以避免调用Anaconda的Python
然后检查PYTHONPATH
,它告诉Python模块应该从哪里导入,如果有任何指向Anaconda包的路径,您也可以将其删除
最后,正如你已经意识到的<强烈建议使用code>virtualenv。如果你查看回溯,你会发现它正在从树冠加载东西,即使你从水蟒开始。这通常意味着您设置了
PYTHONPATH
set。你应该取消它 不要对蟒蛇使用virtualenv
,使用蟒蛇环境。