你好,首先,这是我现在的问题。
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
~/anaconda3/lib/python3.6/site-packages/numpy/core/__init__.py in <module>()
15 try:
---> 16 from . import multiarray
17 except ImportError as exc:
ImportError: dlopen(/Users/marc.seng/anaconda3/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so, 2): can't resolve symbol ___stack_chk_guard in /Users/marc.seng/anaconda3/lib/libopenblas.dylib because dependent dylib #2 could not be loaded in /Users/marc.seng/anaconda3/lib/libopenblas.dylib
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
<ipython-input-3-0aa0b027fcb6> in <module>()
----> 1 import numpy as np
~/anaconda3/lib/python3.6/site-packages/numpy/__init__.py in <module>()
140 return loader(*packages, **options)
141
--> 142 from . import add_newdocs
143 __all__ = ['add_newdocs',
144 'ModuleDeprecationWarning',
~/anaconda3/lib/python3.6/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 ###############################################################################
~/anaconda3/lib/python3.6/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 *
~/anaconda3/lib/python3.6/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, zeros
13 from .ufunclike import isneginf, isposinf
~/anaconda3/lib/python3.6/site-packages/numpy/core/__init__.py in <module>()
24 Original error was: %s
25 """ % (exc,)
---> 26 raise ImportError(msg)
27 finally:
28 for envkey in env_added:
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: dlopen(/Users/marc.seng/anaconda3/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so, 2): can't resolve symbol ___stack_chk_guard in /Users/marc.seng/anaconda3/lib/libopenblas.dylib because dependent dylib #2 could not be loaded in /Users/marc.seng/anaconda3/lib/libopenblas.dylib
我几天来一直试图解决这个问题。但直到现在我才能找到解决方案。 我是初学者,现在正在做一些Udemy-Courses。几个星期前,我试图在我的Osx上运行Spark-Hadoop。为此,我补充说:
if which java > /dev/null; then export
JAVA_HOME=$(/usr/libexec/java_home); fi
export
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
if which pyspark > /dev/null; then
export SPARK_HOME="/usr/local/Cellar/apache-spark/2.2.1/libexec/"
export PYTHONPATH=$SPARK_HOME/python:$SPARK_HOME/python/build:$PYTHONPA$
export PYTHONPATH=$SPARK_HOME/python/lib/py4j-0.10.4-src.zip:$PYTHONPAT$ fi
export HADOOP_HOME=/usr/local/Cellar/hadoop/2.8.2 export
HADOOP_CONF_DIR=$HADOOP_HOME/libexec/etc/hadoop export
SCALA_HOME=/usr/local/Cellar/apache-spark/1.1.0
这是我的.bash_profile
然后我试图让Spyder再次运行,因为当我尝试使用它时它没有打开。经过一番努力,我能够让它运行起来。
我不记得我为了让它运行我做了什么。但从那以后我再也无法导入numpy了。
我试图重新安装Numpy。什么都行不通。
我试图更新libopenblas
什么也没用,因为Conda告诉我我已经有了最新的版本。
所以,如果有人能帮助我,我会非常感激。