当前位置: 首页 > news >正文

Managing conda: Conda 版本和信息查看

Managing conda: Conda 版本和信息查看

  • 1. Verifying that conda is installed
  • 2. Determining your conda version
  • 3. Updating conda to the current version
  • 4. Suppressing warning message about updating conda
  • References

Conda
https://conda.io/projects/conda/en/latest/index.html

Conda
https://conda.io/en/latest/index.html

Miniconda
https://conda.io/en/latest/miniconda.html

Managing conda
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-conda.html

conda 是一个包管理器,Anaconda 是一个发行包。

conda 可以理解为一个工具,也是一个可执行命令,其核心功能是包管理与环境管理。与 pip 的使用类似,环境管理则允许用户方便地安装不同版本的 Python 并可以快速切换。

Anaconda 是一个打包的集合,里面预装好了 conda、某个版本的 Python、众多 packages 等,所以也称为 Python 的一种发行版。Miniconda 只包含最基本的内容。

1. Verifying that conda is installed

To verify that conda is installed, in your terminal window or an Anaconda Prompt, run:

conda --version

Conda responds with the version number that you have installed, such as conda 4.10.3.

(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$ conda --version conda 4.10.3 (base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$

2. Determining your conda version

In addition to theconda --versioncommand explained above, you can determine what conda version is installed by running one of the following commands in your terminal window or an Anaconda Prompt:

conda info

OR

conda -V

3. Updating conda to the current version

To update conda, in your terminal window or an Anaconda Prompt, run:

conda update conda

Conda compares versions and reports what is available to install. It also tells you about other packages that will be automatically updated or changed with the update. If conda reports that a newer version is available, typeyto update:

Proceed ([y]/n)? y
(base) yongqiang@famu-sys:~$ conda --version conda 4.7.12 (base) yongqiang@famu-sys:~$ (base) yongqiang@famu-sys:~$ conda info active environment : base active env location : /home/yongqiang/miniconda3 shell level : 1 user config file : /home/yongqiang/.condarc populated config files : conda version : 4.7.12 conda-build version : not installed python version : 3.7.4.final.0 virtual packages : __cuda=9.1 base environment : /home/yongqiang/miniconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/yongqiang/miniconda3/pkgs /home/yongqiang/.conda/pkgs envs directories : /home/yongqiang/miniconda3/envs /home/yongqiang/.conda/envs platform : linux-64 user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.4 Linux/4.13.0-36-generic ubuntu/16.04.5 glibc/2.23 UID:GID : 1001:1001 netrc file : None offline mode : False (base) yongqiang@famu-sys:~$ (base) yongqiang@famu-sys:~$ conda -V conda 4.7.12 (base) yongqiang@famu-sys:~$ (base) yongqiang@famu-sys:~$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Sep__1_21:08:03_CDT_2017 Cuda compilation tools, release 9.0, V9.0.176 (base) yongqiang@famu-sys:~$

conda update pythonupdates to the most recent in the series, so any Python 2.x would update to the latest 2.x and any Python 3.x to the latest 3.x.

4. Suppressing warning message about updating conda

To suppress the following warning message when you do not want to update conda to the latest version:

==> WARNING: A newer version of conda exists. <== current version: 4.6.13 latest version: 4.8.0

Update conda by running:conda update -n base conda

Run the following command from your terminal or Anaconda Prompt:conda config --set notify_outdated_conda false

Or add the following line in your.condarcfile:notify_outdated_conda: false

References

[1] Yongqiang Cheng (程永强), https://yongqiang.blog.csdn.net/
[2] Managing conda: Conda 版本和信息查看, https://mp.weixin.qq.com/s/zcvWr3t0JQX5bihd0hidXA

http://www.jsqmd.com/news/1275972/

相关文章:

  • 自指黑洞:描述引力与意义蒸发的统一理论(初稿)
  • 01-Kubernetes 入门:概念与安装
  • BruteShark深度解析:如何通过三层架构设计实现企业级网络取证分析
  • Logseq Anki Sync:如何将笔记知识高效转化为记忆卡片?
  • 基于Java+MySQL+SSM网上挂号系统的设计与实现
  • 计算机毕业设计之基于springboot的家政服务系统的设计与实现
  • Anaconda and Miniconda 软件仓库 - 清华大学开源软件镜像站
  • TRF3750 EVM实战:从PLL原理到射频频率合成器调试优化
  • Searx API完全手册:如何利用JSON/CSV接口构建自定义搜索应用
  • 绝区零全自动游戏助手终极指南:解放双手,享受游戏乐趣
  • SlimeVR Server:开源全身追踪系统的终极解决方案
  • TI CC1312PSIP LaunchPad:Sub-1GHz低功耗无线MCU开发与EnergyTrace功耗分析实战
  • 深入解析正交编码器接口:从寄存器配置到电机控制实战
  • Android特殊权限处理:Nammu如何应对SYSTEM_ALERT_WINDOW与WRITE_SETTINGS
  • AI+医疗健康:辅助诊断、病历生成、医学问答与药物研发应用详解
  • 十万卡AI超级群之后,中国AI算力底座正在发生什么变化?
  • 自指螺旋紧致度与基本物理常数的几何化推导(初稿)
  • 5G从头开始
  • 5分钟快速上手:AI视频创作神器MoneyPrinterTurbo终极指南
  • QMS与MES结合使用的最佳实践
  • 2025年Unity游戏逆向工程完整指南:用Il2CppDumper轻松破解IL2CPP保护
  • Spring Bean 完整生命周期
  • LM3S2950 Flash保护与GPIO配置:嵌入式系统安全与硬件接口设计核心
  • Uchiwa与Sensu Go迁移指南:从旧版监控系统平滑过渡
  • PDF补丁丁:一个开源免费的PDF文档处理终极工具,轻松解决PDF编辑难题
  • 百考通:AI精准赋能开题报告,让学术研究更高效,满足多元研究场景
  • 基于Java+MySQL+SSM企业人才管理与测评系统的设计与实现
  • 3分钟掌握B站视频解析:用开源工具轻松获取高清视频地址
  • 20秒完成设置!Playlist-AutoUpdater新手入门教程
  • 基于华为云 FlexusX 四节点集群的云计算全栈实操(三):云硬盘 IO 压测(fio 全场景读懂 IOPS 与吞吐)