How to update from conda 4.3 installed in base environment?

darthbith

I have updated (or installed) conda to a version which is higher than 4.3, but for testing purposes, I installed conda=4.3. Now, I cannot update conda back to a higher version with the base environment activated.

$ conda update conda

PackageNotInstalledError: Package is not installed in prefix.
  prefix: /home/user/miniconda3/envs/base
  package name: conda


usage: conda [-h] [-V] command ...
conda: error: argument command: invalid choice: '/home/user/miniconda3/bin/conda' (choose from 'info', 'help', 'list', 'search', 'create', 'install', 'update', 'upgrade', 'remove', 'uninstall', 'config', 'clean', 'package')

or if I try to install conda directly:

$ conda install conda=4.5
Fetching package metadata ...................

CondaEnvironmentNotFoundError: Could not find environment: /home/user/miniconda3/envs/base .
You can list all discoverable environments with `conda info --envs`.

usage: conda [-h] [-V] command ...
conda: error: argument command: invalid choice: '/home/user/miniconda3/bin/conda' (choose from 'info', 'help', 'list', 'search', 'create', 'install', 'update', 'upgrade', 'remove', 'uninstall', 'config', 'clean', 'package')

How can I get back to a more recent version of conda?

darthbith

This error results from the change between conda 4.3 and 4.4 to rename the "main" environment from root to base. Note that the error message shows that conda is looking for an environment named base in the envs directory, when the base environment is not actually in that directory. If you specify a prefix, you can fix this problem:

conda install conda=4.5 -p /home/user/miniconda3

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How do I prevent Conda from activating the base environment by default?

From Java

How to update an existing Conda environment with a .yml file

From Dev

How to update an existing Conda environment with a .yml file

From Dev

change default environment from (base) to (env) in conda/anaconda in Ubuntu

From Dev

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

From Dev

Cannot setup package in conda environment with Pytorch installed

From Dev

How to set environment variable for the updated youtube-dl installed from pip3?

From Java

How do I keep track of pip-installed packages in an Anaconda (Conda) environment?

From Dev

How to execute python from conda environment by dvc run

From Dev

How to update applications downloaded from internet and installed?

From Java

How to remove (base) from terminal prompt after updating conda

From Dev

How to install Selenium in a conda environment?

From Java

How update/remove conda-forge channel from Anaconda?

From Dev

How update/remove conda-forge channel from Anaconda?

From Dev

How to determine which desktop environment is installed from the shell?

From Dev

Why conda cannot create environment with python=3.4 installed in it

From Java

In conda, what is the differece between "base" environment and no environment at all?

From Dev

use conda environment in sublime text 3

From Dev

How to find the base directory where vendor is installed from a composer package

From Dev

How does update work with programs installed from .deb file

From Dev

How does update work with programs installed from .deb file

From Dev

How to update a disconnected CentOS system from a list of installed RPMs?

From Dev

how to update an app you cloned and installed from GitHub?

From Dev

Unable to update to BootStrap 4 from BootStrap 3

From Dev

How to install Numpy & pip3 for python3.x when they were installed in python2.7? Using Conda?

From Dev

How do I clone a conda environment from one python release to another?

From Java

How to add conda environment to jupyter lab

From Java

How can I rename a conda environment?

From Dev

How to start jupyter in an environment created by conda?

Related Related

  1. 1

    How do I prevent Conda from activating the base environment by default?

  2. 2

    How to update an existing Conda environment with a .yml file

  3. 3

    How to update an existing Conda environment with a .yml file

  4. 4

    change default environment from (base) to (env) in conda/anaconda in Ubuntu

  5. 5

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

  6. 6

    Cannot setup package in conda environment with Pytorch installed

  7. 7

    How to set environment variable for the updated youtube-dl installed from pip3?

  8. 8

    How do I keep track of pip-installed packages in an Anaconda (Conda) environment?

  9. 9

    How to execute python from conda environment by dvc run

  10. 10

    How to update applications downloaded from internet and installed?

  11. 11

    How to remove (base) from terminal prompt after updating conda

  12. 12

    How to install Selenium in a conda environment?

  13. 13

    How update/remove conda-forge channel from Anaconda?

  14. 14

    How update/remove conda-forge channel from Anaconda?

  15. 15

    How to determine which desktop environment is installed from the shell?

  16. 16

    Why conda cannot create environment with python=3.4 installed in it

  17. 17

    In conda, what is the differece between "base" environment and no environment at all?

  18. 18

    use conda environment in sublime text 3

  19. 19

    How to find the base directory where vendor is installed from a composer package

  20. 20

    How does update work with programs installed from .deb file

  21. 21

    How does update work with programs installed from .deb file

  22. 22

    How to update a disconnected CentOS system from a list of installed RPMs?

  23. 23

    how to update an app you cloned and installed from GitHub?

  24. 24

    Unable to update to BootStrap 4 from BootStrap 3

  25. 25

    How to install Numpy & pip3 for python3.x when they were installed in python2.7? Using Conda?

  26. 26

    How do I clone a conda environment from one python release to another?

  27. 27

    How to add conda environment to jupyter lab

  28. 28

    How can I rename a conda environment?

  29. 29

    How to start jupyter in an environment created by conda?

HotTag

Archive