简体   繁体   English

为什么当我使用conda安装环境时却没有提供最新版本

[英]Why when I install a environment with conda it does not give me the latest version

So I have an old version of conda install 所以我有一个旧版本的conda安装

conda -V
conda 4.5.4

the current version of anaconda is 5.1 and it is running python 3.6.4 anaconda的当前版本是5.1并且正在运行python 3.6.4

I wanted to test my code base on the newer version of conda so I tought I could install a new env first with conda and it would give me the latest version of the conda distribution 我想在较新版本的conda上测试我的代码,因此我想可以先在conda上安装一个新的env,它将为我提供最新版本的conda发行版

conda create -n py364 python=3.6 anaconda

I thought this would be installing the latest anaconda with python 3.6.4 but it is actually installing python 3.6.1 我以为这将使用python 3.6.4安装最新的anaconda,但实际上是在安装python 3.6.1

is it possible to install the new anaconda version in a env? 是否可以在环境中安装新的anaconda版本?

It can depends on your environement. 这取决于您的环境。

Test: conda search python to see the available versions for your environement. 测试: conda search python以查看您的环境的可用版本。

Have you tried: conda create -n py364 python=3.6.4 anaconda ? 您是否尝试过: conda create -n py364 python=3.6.4 anaconda

as @darthbith suggested in the comments 正如@darthbith在评论中建议的那样

you should always update your conda version using 您应该始终使用以下内容更新您的conda版本

conda update conda

then if you call 那如果你打电话

conda create -n py364 python=3.6 anaconda

it will install the latest distribution of anaconda on the with python 3.6. 它将在python 3.6上安装最新版本的anaconda。

or you could also call 或者你也可以打电话

conda create -n conda51 anaconda=5.1

to install the actual distribution you are targeting 安装您要定位的实际发行版

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么 conda 安装 pytorch CPU 版本,尽管我明确表示要下载 cuda 工具包版本? - why does conda install the pytorch CPU version despite me putting explicitly to download the cuda toolkit version? 为什么 pip 不允许我在新的 conda env 中安装 torch==1.9.1+cu111 当我有另一个具有该版本的 conda env 时? - Why is pip not letting me install torch==1.9.1+cu111 in a new conda env when I have another conda env that has exactly that version? conda安装似乎没有访问最新的软件包版本 - conda install does not seem to have acces to latest package version 如何在Conda中安装最新版本的Graph API? - How do I install the latest version of Graph API in Conda? 为什么 pip 没有在 conda 环境中安装 github 存储库? - Why does pip not install a github repository whitin conda environment? 为什么我在创建新的 conda 环境时必须指定 python 版本? - Why do I have to specify the python version when creating a new conda environment? 如何使用conda安装最新的Python开发版本? - How to install the latest development version of Python with conda? 为什么我运行该代码时会给我一个NameError? - Why does this code give me a NameError when I run it? 如何在conda环境下安装keras 2.0.5版本 - How to install keras 2.0.5 version in a conda environment 离线时如何安装 conda 环境? - How can I install a conda environment when offline?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM