How to configure Anaconda environment variables in Linux?
To set up the Anaconda environment variable in Linux, you can follow these steps:
- The file named “.bashrc”
$ nano ~/.bashrc
- The location of Anaconda.
export PATH="/path/to/anaconda/bin:$PATH"
- Press Ctrl + X to save and exit the editor.
- Enter the following command to make the modified environment variables take effect:
$ source ~/.bashrc
- 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.