【问题标题】:Anaconda does not work on python3?Anaconda 在 python3 上不起作用?
【发布时间】:2016-06-14 01:19:13
【问题描述】:

我为 osx El Capitan 下载了 anaconda 打包安装程序(适用于 python3.5 和 64 位)。

我成功安装anaconda后,就可以在python2上使用matplotlib等模块了。但是,我不能在 python3 中使用这些模块。

所以,我在谷歌上搜索并找到了类似的 (How to run Conda?) 我检查了我的.bash_profile,发现它自动为 anaconda 创建了代码

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

这是我的.bash_profile python3 代码

PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"

但是,我仍然无法在 python 3 上导入模块,也无法在命令 shell 上使用命令 conda

在 python3 上运行 conda 和导入模块需要什么? 提前致谢。

【问题讨论】:

    标签: python-3.x anaconda conda


    【解决方案1】:

    您没有正确删除 Python。 python3 引用的是从 python.org 下载的 python 版本,而不是使用 anaconda 下载的版本。

    查看此链接了解如何正确删除旧版本https://nektony.com/how-to/uninstall-python-on-mac

    【讨论】:

      【解决方案2】:

      我找到了简单的解决方案(?)。关闭所有打开的终端窗口,然后重新打开然后尝试conda 或导入模块。有效!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-12-12
        • 1970-01-01
        • 1970-01-01
        • 2018-12-23
        • 2015-05-28
        • 2023-03-30
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多