Installation
Welcome to the PoliSciPy installation guide! This page will help you set up and run PoliSciPy on your own system.
Prerequisites
Before installing, make sure your environment meets the following requirements:
- Python 3.8 or higher: Download Python
- pip: Python’s package manager (installation guide)
- Git (optional): For installing directly from the source (Git installation guide)
To verify you have Python and pip installed, run these commands in your terminal:
python --version
pip --version
You should see output similar to:
Python 3.8.x
pip 21.x
Installation Methods
Option 1: Using pip (Recommended)
If you have pip installed, you can quickly install PoliSciPy with the following command:
pip install poliscipy
This command will automatically download and install the latest stable version of PoliSciPy and its dependencies from the Python Package Index (PyPI).
Option 2: Using conda
Alternatively, if you prefer using the conda package manager, you can install PoliSciPy from the conda-forge channel:
conda install -c conda-forge poliscipy
This method is particularly helpful if you are working in a conda-based environment, as it will also manage dependencies more efficiently.
Option 3: Installing Directly from Source (For the Latest Version)
If you would like to get the most up-to-date version of PoliSciPy (which may include the latest bug fixes, features, or improvements), you can install it directly from its GitHub repository. This method is especially useful if you would like to contribute to development or try out new/experimental features.
To install PoliSciPy directly from source, run the following commands:
- Clone the repository:
git clone https://github.com/username/poliscipy.git - Navigate to the repository folder:
cd poliscipy - Install the package using pip:
pip install .
This will install PoliSciPy from the latest version in the repository.
Dependencies
PoliSciPy requires the following libraries to work correctly:
- GeoPandas: Used for handling geospatial data.
- Matplotlib: Used for creating static, animated, and interactive plots.
- Pandas: Used for working with data and merging in results.
These dependencies will be automatically installed when you use either of the installation methods above. However, if you wish to install them manually, you can do so by running:
pip install geopandas matplotlib pandas or conda install geopandas matplotlib pandas
Still Having Trouble?
If you encounter any issues during installation, don’t worry! Here are some steps you can take:
- Check the FAQs: There is a list of common issues and solutions on the FAQs page.
- Open an Issue: If you can’t find a solution in the FAQs, please feel free to open a new issue in the Issues page. Be sure to include any relevant error messages and steps to reproduce the issue.
- Join the Discussion: If you’re stuck, you can also join PoliSciPy’s discussions on GitHub Discussions for help.