How to Install Python with Conda

From RidgeRun Developer Wiki


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


For direct inquiries, please refer to the contact information available on our Contact page. Alternatively, you may complete and submit the form provided at the same link. We will respond to your request at our earliest opportunity.


Links to RidgeRun Resources and RidgeRun Artificial Intelligence Solutions can be found in the footer below.