After installing Anaconda on Ubuntu, every time you start the terminal, it will automatically enter the CONDA base environment. You can exit the CONDA environment through the following instructions:
conda deactivate
But considering that you need to perform this step to exit every time, it is troublesome, so you want to start the terminal without entering the CONDA environment. It is recommended to modify the config file of CONDA
conda config --set auto_activate_base false
However, I don’t use it here. After starting, I will automatically enter the base environment of CONDA. The final solution is to modify the configuration file of CONDA directly
sudo vi ~/.condarc
Add in the last line:
auto_activate_base: false
So far, it’s done.
Query specific settings through “CONDA – H”:
usage: conda [-h] [-V] command ...
conda is a tool for managing and deploying applications, environments and packages.
Options:
positional arguments:
command
clean Remove unused packages and caches.
config Modify configuration values in .condarc. This is modeled
after the git config command. Writes to the user .condarc
file (/home/XXX/.condarc) by default.
create Create a new conda environment from a list of specified
packages.
help Displays a list of available conda commands and their help
strings.
info Display information about current conda install.
init Initialize conda for shell interaction. [Experimental]
install Installs a list of packages into a specified conda
environment.
list List linked packages in a conda environment.
package Low-level conda package utility. (EXPERIMENTAL)
remove Remove a list of packages from a specified conda environment.
uninstall Alias for conda remove.
run Run an executable in a conda environment. [Experimental]
search Search for packages and display associated information. The
input is a MatchSpec, a query language for conda packages.
See examples below.
update Updates conda packages to the latest compatible version.
upgrade Alias for conda update.
optional arguments:
-h, --help Show this help message and exit.
-V, --version Show the conda version number and exit.
Read More:
- Terminal appears after anconda is installed on MAC (base)
- CONDA creating virtual environment and common CONDA commands
- Method of canceling anydesk startup under Windows
- For the installation of anaconda3 in manjaro system, after the update (CONDA update — all), the terminal prompts an error and cannot execute CONDA related commands
- It is invalid to submit the content directly after pasting it on the mobile terminal of Vue HTML5 editor
- CONDA failed to create environment (collecting package metadata(repodata.json): failed)
- Remember once to solve the problem that Ubuntu 18.04 can’t enter GUI
- Jupyter notebook couldn’t find CONDA’s virtual environment
- Solve CONDA’s “solving environment: failed” problem
- Several ways for Ubuntu to open command line terminal window
- Error in downloading update creation environment of CONDA: collecting package metadata (current_ repodata.json): failed
- The python version output from the command line is inconsistent with the python version in the current CONDA environment
- Anaconda create environment, delete environment, activate environment, exit environment
- Using CONDA virtual environment in pychar
- Idea2021 reports an error. Default operand size is 64 sets the startup task to automatically add the registry
- An error is reported when installing the package directly in pycharm, but it can be installed through the terminal. Error non zero exit code (2)
- RemoveError: ‘requests’ is a dependency of conda and cannot be removed from conda’s operating enviro
- RemoveError: ‘setuptools’ is a dependency of conda and cannot be removed from conda’s operatin
- RemoveError: ‘requests‘ is a dependency of conda and cannot be removed from conda‘s operating env
- Restart and shutdown of Ubuntu system in the terminal