Links:
- Anaconda: Anaconda AUR Package
- Miniconda: Miniconda AUR Package
Step 1: Clone the Package to Your System
- Click on the
Git Clone URL
and copy the repository link. - Open your terminal and navigate to your desired directory. Here, I'm moving to the
/Downloads/
directory.
git clone https://aur.archlinux.org/packages/anaconda
Once the cloning process completes successfully, proceed to the next step.
Step 2: Install the Package into Your System
- Open a terminal and change directory to where you cloned the repository.
cd /Downloads/anaconda
- Build and install the package using
makepkg
.
makepkg -si
This process will take some time. Once it finishes, proceed to the next steps.
- Locate the installation script, typically named
anaconda_xxxxxx.sh
. Make it executable from the terminal.
sudo chmod +x anaconda_xxxxxx.sh
- Execute the installation script.
sudo ./anaconda_xxxxxx.sh
Follow the on-screen prompts, including reading the agreement and typing yes
to proceed with the setup.
Creating Environment and Example
To activate the base environment:
conda activate base
You'll see (base)
in front of your terminal prompt indicating the base environment is active.
For those who installed Anaconda, you can launch Anaconda Navigator using:
anaconda-navigator
That's it for Anaconda installation.
Miniconda Verification
Verify the Miniconda installation by checking its version:
conda --version
Checking Miniconda Path
To ensure Miniconda's binaries are in your PATH:
echo $PATH
Look for a directory like /path/to/miniconda3/bin
in the output. If it's missing, you'll need to add it to your PATH.
Assuming everything is correct, activate the base environment again:
conda activate base
Opening Jupyter Notebook
Install Jupyter Notebook:
conda install jupyter notebook
Then, launch Jupyter Notebook:
jupyter-notebook
You've successfully run Jupyter Notebook with Miniconda.
Extra Perks
1. Creating a New Conda Environment
Create a new environment specifying Python version and install packages:
conda create -n <env_name> python=<version>
conda activate <env_name>
For example:
conda create -n myenv python=3.9
conda activate myenv
conda install numpy
2. Listing and Deleting Environments
List all environments:
conda env list
Delete an environment:
conda env remove -n <env_name>
3. Deactivating an Environment
Deactivate the current environment:
conda deactivate
For more information on managing environments, refer to this link.
Top comments (0)