Skip to content

Instantly share code, notes, and snippets.

@Mukei
Created November 30, 2017 07:01
Show Gist options
  • Save Mukei/db1ef8fdefe20fdb6aa8ed39610887b3 to your computer and use it in GitHub Desktop.
Save Mukei/db1ef8fdefe20fdb6aa8ed39610887b3 to your computer and use it in GitHub Desktop.

Revisions

  1. Mukei created this gist Nov 30, 2017.
    9 changes: 9 additions & 0 deletions conda_environment_rename.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #One workaround is to create clone environment, and then remove original one:
    #(remember about deactivating current environment with deactivate on Windows and source deactivate on macOS/Linux)

    conda create --name new_name --clone old_name --offline #use --offline flag to disable the redownload of all your packages
    conda remove --name old_name --all # or its alias: `conda env remove --name old_name`

    #There are several drawbacks of this method:
    # time consumed on copying environment's files,
    # temporary double disk usage.