Installation Instructions¶
This guide will help you install the required dependencies and set up the environment for your project.
System Requirements¶
Before installing the package, ensure your system meets the following requirements:
Python 3.7 or higher
pip (Python package installer)
Installing with pip¶
To install the package using pip, run the following command:
pip install leap_frontend
This will install the latest version of the package from the Python Package Index (PyPI).
Installing from Source¶
If you prefer to install the package from the source code, follow these steps:
Clone the repository from GitHub:
git clone https://github.com/nozidoali/leap-frontend.git
Navigate to the project directory:
cd leap-frontend
Install the package using pip:
pip install .
Alternatively, you can install it in “editable” mode for development:
pip install -e .
Using a Virtual Environment (Recommended)¶
It is recommended to use a virtual environment to manage dependencies and isolate your project environment.
Create a virtual environment:
python -m venv venv
Activate the virtual environment:
On macOS/Linux:
source venv/bin/activate
On Windows:
venv\Scripts\activate
Install the package and dependencies:
pip install -r requirements.txt
Installing Development Dependencies¶
If you’re contributing to the project or need to run tests, you should install development dependencies:
pip install -r requirements-dev.txt
You can now run the test suite with:
pytest
Updating Dependencies¶
To update the package to the latest version, use the following command:
pip install --upgrade leap-frontend