How to configure Anaconda environment variables in Linux?

To set up the Anaconda environment variable in Linux, you can follow these steps:

  1. The file named “.bashrc”
$ nano ~/.bashrc
  1. The location of Anaconda.
export PATH="/path/to/anaconda/bin:$PATH"
  1. Press Ctrl + X to save and exit the editor.
  2. Enter the following command to make the modified environment variables take effect:
$ source ~/.bashrc
  1. Check if the Anaconda environment variables are correctly configured. Type the following command in the terminal:
$ conda --version

If you successfully print the version number of Anaconda, it indicates that the environment variable configuration was successful.

Please note that if you are using a different shell, such as zsh, you will need to edit the corresponding shell configuration file, such as ~/.zshrc, instead of ~/.bashrc.

bannerAds