【问题标题】:Miniconda update to new bash sessionMiniconda 更新到新的 bash 会话
【发布时间】:2019-09-23 01:40:46
【问题描述】:

我的 mac 系统中安装了 miniconda。回到我安装的时候,我从https://docs.conda.io/en/latest/miniconda.html 下载了 python 3.6 mac OS 64 位(bash 安装程序)

目前有 python 3.7 bash session 可用,我尝试使用以下命令下载后安装最新的 bash,

bash Miniconda3-latest-MacOSX-x86_64.sh

在许可过程和目录设置为我的旧目录(在主目录中)后,我看到了错误

错误:文件或目录已存在:'/Users/xxxxxxxxxx/miniconda3' 如果要更新现有安装,请使用 -u 选项。

我在这里错过了什么。我更新的主要原因是更新 python 版本。由于使用“conda update conda”,我只能获得 3.6 系列的 python 更新。我想更新到3.7系列的python。

谢谢。

【问题讨论】:

    标签: python bash python-3.7 miniconda


    【解决方案1】:

    无需更新 Miniconda 即可更改 Python 版本。

    如果您想为某些项目使用不同的 Python 版本,create new conda environments。每个 conda 环境可以使用不同的 Python 版本,并且完全独立于基础环境中的 Python 版本。

    conda create -n myenv python=3.7
    

    如果要更改基础环境的 Python 版本,请使用

    conda install -n base python=3.7
    

    【讨论】:

      猜你喜欢
      • 2016-02-13
      • 2021-09-03
      • 2017-09-23
      • 1970-01-01
      • 2018-02-12
      • 1970-01-01
      • 1970-01-01
      • 2015-11-01
      • 1970-01-01
      相关资源
      最近更新 更多