在Anaconda中更新python 3.5 [英] Update python 3.5 in anaconda

查看:334
本文介绍了在Anaconda中更新python 3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用以下命令安装了python 3.5:

I have installed python 3.5 with the following commando:

conda create -n py35 python=3.5 anaconda

我还安装了基本的Anaconda python27.当我想更新它时,我只写:

I also have a base Anaconda python27 installed. When I wish to update it I just write:

conda update conda

但是如何更新pyhon35?

But how do I update my pyhon35?

我已经尝试过了:

activate py35
[py35] C:\Users\trofl>cd C:\Users\trofl\Anaconda2\envs\py35

[py35] C:\Users\trofl\Anaconda2\envs\py35>conda install conda
    Using Anaconda Cloud api site https://api.anaconda.org
    Fetching package metadata: ....
    Solving package specifications: .........

    Error: 'conda' can only be installed into the root environment

推荐答案

在当前环境中拥有conda-env和conda-build时,您似乎正在尝试安装.您必须先删除这些内容才能更新conda.

It looks like you are trying to install when you have conda-env and conda-build in your current environment. You have to remove these first to update conda.

source activate my-env
conda remove conda-build
conda remove conda-env
conda update anaconda

这篇关于在Anaconda中更新python 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆