How to Install Python with Conda

From RidgeRun Developer Wiki
Revision as of 18:07, 30 January 2024 by Eramirez (talk | contribs) (Created page with "== Overview == This is a guidance to install python using conda. == Download Conda == Download conda from: https://docs.conda.io/projects/miniconda/en/latest/ You should select the correct link depending on your platform or arquitecture, this wiki is focused on X86 and Jetson systems: * X86: Miniconda3 Linux 64-bit * Jetson: Miniconda3 Linux-aarch64 64-bit == Installation == * First create a directory for the installation: mkdir -p ~/miniconda3 * Install conda: <pr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Overview

This is a guidance to install python using conda.

Download Conda

Download conda from: https://docs.conda.io/projects/miniconda/en/latest/

You should select the correct link depending on your platform or arquitecture, this wiki is focused on X86 and Jetson systems:

  • X86: Miniconda3 Linux 64-bit
  • Jetson: Miniconda3 Linux-aarch64 64-bit

Installation

  • First create a directory for the installation:
mkdir -p ~/miniconda3
  • Install conda:
# For Jetson
bash ./Miniconda3-latest-Linux-aarch64.sh -b -u -p ~/miniconda3

# For X86
bash ./Miniconda3-latest-Linux-x86_64.sh -b -u -p ~/miniconda3
  • After installing, initialize your newly-installed Miniconda. :
~/miniconda3/bin/conda init bash

Install Python

  • Run the following command to install python:
conda create -n myenv python=3.9 --yes
  • Activate your environment:
source activate myenv
  • You can then, check your python version:
python --version