Skip to content

Instantly share code, notes, and snippets.

@tadejsv
Created February 2, 2021 12:10
Show Gist options
  • Save tadejsv/5fa2a91b7d949d88aaf6d9ae6d636d17 to your computer and use it in GitHub Desktop.
Save tadejsv/5fa2a91b7d949d88aaf6d9ae6d636d17 to your computer and use it in GitHub Desktop.
Install conda/python on Ubuntu

These commands should be entered in the terminal. Open it with Ctrl + Alt + T

  1. Download installer:
curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
  1. Install
bash ./miniconda.sh

Make sure to follow installer and select yes when it asks you to add a path prefix/modify shell init or whatever.

  1. Open and close terminal again. Check that everything works by typing
conda info
  1. Remove installer file
rm miniconda.sh
  1. Create an environment and install jupyter lab and pandas
conda create -n pyenv python=3.8 jupyterlab pandas -c conda-forge
  1. Activate the environment (this you do in the future whenever you open the terminal and need to use python)
conda activate pyenv
  1. Open Jupyter lab
jupyter lab
  1. In Jupyter Lab, try some python stuff. For example
print(f"What is 3*5? A: {3*5}")
  1. Done. From here on try (in this order): basic python tutorial, numpy tutorial and pandas tutorial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment