您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

python – 安装Anaconda后无法导入numpy

5b51 2022/1/14 8:22:06 python 字数 2118 阅读 544 来源 www.jb51.cc/python

我刚刚安装了Anaconda 3.5.终端显示正确的版本,甚至括号内的Continuum Analytics:Python 3.5.0 |Continuum Analytics, Inc.| (default, Oct 20 2015, 14:39:26) [GCC 4.2.1 (Apple Inc. build 5577)] on darwin Type

概述

我刚刚安装了Anaconda 3.5.终端显示正确的版本,甚至括号内的Continuum Analytics:

Python 3.5.0 |Continuum Analytics,Inc.| (default,Oct 20 2015,14:39:26) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help","copyright","credits" or "license" for more information.

但是,当我键入以下内容时:

>>> import numpy

我收到错误

Traceback (most recent call last):
File "
  

我知道Anaconda带有numpy(我运行conda列表,只是为了确保).有谁知道发生了什么?

我的.bash_profile似乎可能与它有关.如果是,则内容如下.

# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH

# added by Anaconda3 2.3.0 installer
export PATH="/Users/username/anaconda/bin:$PATH"

# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH

Python 3.5.0 |Anaconda 2.4.0 (x86_64)| (default,"credits" or "license" for more information.

因此,显然看到“Continuum Analytics”并不意味着你正在使用Anaconda.

总结

以上是编程之家为你收集整理的python – 安装Anaconda后无法导入numpy全部内容,希望文章能够帮你解决python – 安装Anaconda后无法导入numpy所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶