Add tech_docs/linux/conda_install.md
This commit is contained in:
67
tech_docs/linux/conda_install.md
Normal file
67
tech_docs/linux/conda_install.md
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
Great! Here's a step-by-step guide to download, verify the hash, and properly set up Conda on your Debian 12 system:
|
||||||
|
|
||||||
|
1. Download the Miniconda installer:
|
||||||
|
- Open a terminal and navigate to the directory where you want to download the installer
|
||||||
|
- Run the following command to download the latest Miniconda installer for Linux 64-bit:
|
||||||
|
```
|
||||||
|
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Verify the hash of the downloaded installer:
|
||||||
|
- Run the following command to calculate the SHA256 hash of the downloaded installer:
|
||||||
|
```
|
||||||
|
sha256sum Miniconda3-latest-Linux-x86_64.sh
|
||||||
|
```
|
||||||
|
- Compare the calculated hash with the expected hash provided in the Miniconda hash information. For the latest version (Conda 24.3.0 Python 3.12.2), the expected hash is:
|
||||||
|
```
|
||||||
|
96a44849ff17e960eeb8877ecd9055246381c4d4f2d031263b63fa7e2e930af1
|
||||||
|
```
|
||||||
|
- If the calculated hash matches the expected hash, proceed with the installation. If not, download the installer again.
|
||||||
|
|
||||||
|
3. Install Miniconda:
|
||||||
|
- Run the following command to make the installer executable:
|
||||||
|
```
|
||||||
|
chmod +x Miniconda3-latest-Linux-x86_64.sh
|
||||||
|
```
|
||||||
|
- Run the installer:
|
||||||
|
```
|
||||||
|
./Miniconda3-latest-Linux-x86_64.sh
|
||||||
|
```
|
||||||
|
- Follow the installation prompts and accept the license agreement
|
||||||
|
- Choose the installation location (default is recommended)
|
||||||
|
- Allow the installer to initialize Conda and add it to your shell's PATH
|
||||||
|
|
||||||
|
4. Initialize Conda:
|
||||||
|
- Close and reopen your terminal for the changes to take effect, or run the following command to refresh your shell's environment:
|
||||||
|
```
|
||||||
|
source ~/.bashrc
|
||||||
|
```
|
||||||
|
- Run the following command to initialize Conda for your shell (e.g., bash or zsh):
|
||||||
|
```
|
||||||
|
conda init bash
|
||||||
|
```
|
||||||
|
or
|
||||||
|
```
|
||||||
|
conda init zsh
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Verify the installation:
|
||||||
|
- Run the following command to verify that Conda is installed and working properly:
|
||||||
|
```
|
||||||
|
conda --version
|
||||||
|
```
|
||||||
|
- You should see the version of Conda installed (e.g., conda 24.3.0).
|
||||||
|
|
||||||
|
6. Update Conda (optional):
|
||||||
|
- Run the following command to update Conda to the latest version:
|
||||||
|
```
|
||||||
|
conda update conda
|
||||||
|
```
|
||||||
|
|
||||||
|
By following these steps, you will have downloaded the Miniconda installer, verified its integrity using the hash, installed Miniconda on your Debian 12 system, and initialized Conda for your shell.
|
||||||
|
|
||||||
|
You can now start using Conda to create and manage environments, install packages, and run Python and Jupyter Notebooks.
|
||||||
|
|
||||||
|
Remember to replace the hash value with the appropriate one for the specific version of Miniconda you are downloading.
|
||||||
|
|
||||||
|
Let me know if you have any further questions!
|
||||||
Reference in New Issue
Block a user