@@ -8,44 +8,47 @@ Some operative systems come equipped with a Python installation. Even in this ca
In this page we describe two methods:
1.[Setup of a miniconda installation](#install-and-configure-miniconda)(easier)
1.[Setup of a miniforge installation](#install-and-configure-miniforge)(easier)
2.[Compile and configure python from source code](#compile-and-configure-python-from-source-code)(necessary when thw installation needs to be compiled with a specific compiler, for example to be used with MPI).
None of the two methods requires admin rights.
## Install and configure miniconda
## Install and configure miniforge
**Step 1:** Download and install the most recent version of Miniconda (from [here](https://repo.anaconda.com/miniconda/))
**Step 1:** Download and install the most recent version of Miniforge (from [here](https://github.com/conda-forge/miniforge/))
To install packages that need to compile code (e.g. PyECLOUD, PyHEADTAIL or Xsuite) you need C and/or FORTRAN compilers. If you don't have compilers available on your system you can install them using conda as discussed in [this guide](https://conda.io/projects/conda-build/en/latest/resources/compiler-tools.html).
For example on Linux you can install C, C++ and FORTRAN compilers by:
For example on Linux or MacOS you can install C, C++ and FORTRAN compilers by:
```bash
conda install gcc_linux-64
conda install gxx_linux-64
conda install gfortran_linux-64
conda install compilers
```
while on MAC you can use:
```bash
conda install clang_osx-64
conda install clangxx_osx-64
conda install gfortran_osx-64
```
**Step 3:** Install useful packages
```
...
...
@@ -257,4 +260,4 @@ A couple of references that helped with this task: