首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法导入海运

无法导入海运
EN

Stack Overflow用户
提问于 2015-10-31 19:55:36
回答 2查看 4.4K关注 0票数 3

我有一个关于进口海运的问题。我最近在我的PC上安装了"anaconda“,并尝试使用seaborn pacjesge。我更新了scipynumpy。实际上,在更新scipy之前,python看不到seaborn。问题出在哪里?请帮帮我

代码语言:javascript
运行
复制
Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 17:02:03) 
Type "copyright", "credits" or "license" for more information.

IPython 3.2.0 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import seaborn as sns
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-ed9806ce3570> in <module>()
----> 1 import seaborn as sns

~/anaconda/lib/python2.7/site-packages/seaborn/__init__.py in <module>()
----> 1 from .rcmod import *
      2 from .utils import *
      3 from .palettes import *
      4 from .linearmodels import *
      5 from .categorical import *
~/anaconda/lib/python2.7/site-packages/seaborn/rcmod.py in <module>()
      1 """Functions that alter the matplotlib rc dictionary on the fly."""
----> 2 import numpy as np
      3 import matplotlib as mpl
      4 
      5 from . import palettes

~/anaconda/lib/python2.7/site-packages/numpy/__init__.py in <module>()
    178         return loader(*packages, **options)
    179 
--> 180     from . import add_newdocs
    181     __all__ = ['add_newdocs',
    182                'ModuleDeprecationWarning',

~/anaconda/lib/python2.7/site-packages/numpy/add_newdocs.py in <module>()
     11 from __future__ import division, absolute_import, print_function
     12 
---> 13 from numpy.lib import add_newdoc
     14 
     15 ###############################################################################

~/anaconda/lib/python2.7/site-packages/numpy/lib/__init__.py in <module>()
      6 from numpy.version import version as __version__
      7 
----> 8 from .type_check import *
      9 from .index_tricks import *
     10 from .function_base import *
~/anaconda/lib/python2.7/site-packages/numpy/lib/type_check.py in <module>()
      9            'common_type']
     10 
---> 11 import numpy.core.numeric as _nx
     12 from numpy.core.numeric import asarray, asanyarray, array, isnan, \
     13                 obj2sctype, zeros
~/anaconda/lib/python2.7/site-packages/numpy/core/__init__.py in <module>()
     12 if 'GOTOBLAS_MAIN_FREE' not in os.environ:
     13     os.environ['GOTOBLAS_MAIN_FREE'] = '1'
---> 14 from . import multiarray
     15 os.environ.clear()
     16 os.environ.update(envbak)

ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

In [2]: 
EN

回答 2

Stack Overflow用户

发布于 2016-08-31 00:07:03

这终于在mac上对我起作用了。

终端类型中的

  1. :iPython,然后点击return
  2. 交互式python终端就会出现

Python4.1.2 --增强的交互式IPython。?->介绍和概述IPython的功能。%quickref ->快速参考。help -> Python自己的帮助系统。object?->有关'object‘的详细信息,请使用'object??’以获取更多详细信息。

在1

  • 类型中:!pip安装Seaborn

  • 您应该会看到:成功构建Seaborn安装收集的软件包:Seaborn成功安装Seaborn也尝试(!conda而不是!pip),但!pip适用于我。然后,我尝试在iPython notebook中运行具有"import Seaborn“的单元,它工作了。
票数 2
EN

Stack Overflow用户

发布于 2016-04-26 20:15:57

在我的例子中,我只是重新安装了jupyter,它就可以工作了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33451260

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档