Pre-Requisites of the AstroGeoFit Package¶
In order to install and execute AstroGeoFit, there are some pre-requisites that have to be installed by the user.
These pre-requisites are listed below.
Python (version 3.9 or higher)¶
AstroGeoFit uses Python as base language. In order to execute the tool it will be required to previously install Python, especifically the version 3.9 or any version higher.
To install Python refer to the official website https://www.python.org/downloads/.
To check which version of Python there is in the PC, execute the next command in the terminal:
python --version
Setting Up a Virtual Environment (Recommended)¶
It’s recommended to install AstroGeoFit inside a virtual environment to
avoid dependency conflicts. You can use either venv or conda.
Using conda¶
To install conda, follow the guide found in the official website: Conda Installation Guide
Create a new Conda environment:
conda create --name astrogeofit python=3.11
Activate the environment:
conda activate astrogeofit
Using venv (Built-in Python Virtual Environment)¶
You can install and use venv by following the instructions in the official Python venv documentation.
Create a virtual environment:
python -m venv astrogeofit
Activate the virtual environment:
On Linux/macOS:
source astrogeofit/bin/activate
On Windows (cmd or PowerShell):
astrogeofit\Scripts\activate
Note
For the virtual environments, the name astrogeofit can be changed for the name that the user prefers.