How to set up Conda on Linux?
To install and configure Anaconda on Linux, you can follow these steps:
- Download the Anaconda installation package for Linux from the official Anaconda website. Choose the appropriate installation package based on your Linux system version (usually a .sh file).
- Open the terminal window, go to the download directory, and use the following command to give the installation package executable permissions:
chmod +x Anaconda3-xxx-Linux-x86_64.sh
Anaconda3-xxx-Linux-x86_64.sh is the name of the installation package file you downloaded.
- Run the following command to install Anaconda:
./Anaconda3-xxx-Linux-x86_64.sh
Follow the prompts, press Enter to accept the license agreement, and then choose the installation path for Anaconda (you can use the default path).
- After the installation is complete, the terminal window will display some information, including a suggestion to add Anaconda to the system PATH. If you want to add Anaconda to the system PATH, you can follow the instructions.
- Restart the terminal window or run the following command to update the environment variables in the current terminal window:
source ~/.bashrc
- After completing the above steps, you can verify if Anaconda has been successfully installed by running the following command.
conda --version
If the conda version is displayed after running the above command, it means that Anaconda has been successfully installed.
This completes the process of installing and configuring Anaconda on Linux. Next, you can use the ‘conda’ command to manage and use Python environments, install third-party packages, and more.