Ubuntu系统中如何更新conda到最新版本 conda-env: error: invalid choice: ‘rename‘ (choose from ‘attach‘, ‘create‘,

It looks like you're using an older version of conda, which doesn't have the conda env rename command. In versions prior to conda 4.8, the recommended way to rename a conda environment is to create a new environment with the desired name and then install the packages from the old environment into the new environment. Here's an example:

Ubuntu系统中如何更新conda到最新版本

You can update conda to the latest version in an Ubuntu system by using the following steps:

  1. Open a terminal.

  2. Run the following command to update the conda package itself:

 
  

sqlCopy code

conda update conda

  1. After updating conda, run the following command to update all the other packages in your environment:
 
  

sqlCopy code

conda update --all

Note that updating conda to a new version may require you to also update other packages in your environment to maintain compatibility.

 

你可能感兴趣的:(conda,python,深度学习,linux)