Software:Python (MiniConda): Difference between revisions

From Atmospheric and Oceanic Science
Jump to navigation Jump to search
Line 2: Line 2:
Python is already installed on all Linux workstations. '''However''' the python istalled is used by the system packages, and cannot be updated.  For general programming, and to have more current versions of python, and dependencies, I recommend the installation of conda/miniconda in your home directory.  In this way, you can manage the versions of numpy, scipy, jupyter etc independently of the python that is installed on the system
Python is already installed on all Linux workstations. '''However''' the python istalled is used by the system packages, and cannot be updated.  For general programming, and to have more current versions of python, and dependencies, I recommend the installation of conda/miniconda in your home directory.  In this way, you can manage the versions of numpy, scipy, jupyter etc independently of the python that is installed on the system


* Bulleted list item
=== Miniconda Installation ===
=== Miniconda Installation ===
# Download the miniconda package (Miniconda3 Linux 64-bit) from [https://docs.conda.io/en/latest/miniconda.html the main Miniconda website].
# Download the miniconda package (Miniconda3 Linux 64-bit) from [https://docs.conda.io/en/latest/miniconda.html the main Miniconda website].
# Move the downloaded file to your home directory: <nowiki> mv Miniconda3-latest-Linux-x86_64.sh ~ </nowiki>   
# Move the downloaded file to your home directory: <nowiki> mv Miniconda3-latest-Linux-x86_64.sh ~ </nowiki>   
# Install the package with the following command: <nowiki>bash Miniconda3-latest-Linux-x86_64.sh</nowiki>, accepting the default values for all the questions.
# Install the package with the following command: <nowiki>bash Miniconda3-latest-Linux-x86_64.sh</nowiki>, accepting the default values for all the questions.
# To make the changes take effect, close and then re-open your terminal window.
# To make the changes take effect, close and then re-open your terminal window.
# Test your installation. In your terminal window or Anaconda Prompt, run the command conda list. A list of installed packages appears if it has been installed correctly.
# Test your installation. In your terminal window or Anaconda Prompt, run the command conda list. A list of installed packages appears if it has been installed correctly.

Revision as of 20:30, 10 May 2023

Using Python

Python is already installed on all Linux workstations. However the python istalled is used by the system packages, and cannot be updated. For general programming, and to have more current versions of python, and dependencies, I recommend the installation of conda/miniconda in your home directory. In this way, you can manage the versions of numpy, scipy, jupyter etc independently of the python that is installed on the system

Miniconda Installation

  1. Download the miniconda package (Miniconda3 Linux 64-bit) from the main Miniconda website.
  2. Move the downloaded file to your home directory: mv Miniconda3-latest-Linux-x86_64.sh ~
  3. Install the package with the following command: bash Miniconda3-latest-Linux-x86_64.sh, accepting the default values for all the questions.
  4. To make the changes take effect, close and then re-open your terminal window.
  5. Test your installation. In your terminal window or Anaconda Prompt, run the command conda list. A list of installed packages appears if it has been installed correctly.