Installation¶
This guide covers various ways to install GigQ and set up your environment.
Prerequisites¶
GigQ requires:
- Python 3.10 or newer
- SQLite 3.8.3 or newer (usually included with Python)
Standard Installation¶
The simplest way to install GigQ is via pip:
This will install the latest stable version of GigQ from PyPI with minimal dependencies.
Installation with Extra Features¶
GigQ uses "extras" to manage optional dependencies. You can install GigQ with additional dependencies for specific features:
# Install with dependencies for running examples
pip install "gigq[examples]"
# Install with dependencies for building documentation
pip install "gigq[docs]"
# Install with dependencies for development
pip install "gigq[dev]"
# Install with all extra dependencies
pip install "gigq[examples,docs,dev]"
Installation from Source¶
To install the latest development version from GitHub:
The -e flag installs the package in "editable" mode, which is useful for development.
For development with all dependencies:
Installation in a Virtual Environment¶
It's a good practice to install GigQ in a virtual environment to avoid conflicts with other packages. Here's how to do it with venv:
# Create a virtual environment
python -m venv gigq-env
# Activate the virtual environment
# On Windows:
gigq-env\Scripts\activate
# On macOS/Linux:
source gigq-env/bin/activate
# Install GigQ
pip install gigq
Docker Installation¶
You can also run GigQ in a Docker container. Create a Dockerfile:
FROM python:3.10-slim
WORKDIR /app
# Install GigQ
RUN pip install gigq
# Copy your application code
COPY . .
# Command to run when the container starts
CMD ["python", "your_script.py"]
Then build and run the container:
Verifying the Installation¶
After installation, you can verify that GigQ is installed correctly by running:
You should see the version number of GigQ printed.
Dependencies¶
GigQ has the following dependency categories:
Build Dependencies¶
- setuptools (>=42)
- wheel
Core Dependencies¶
- Python 3.10+
Example Dependencies [examples]¶
- pandas
- requests
- schedule
- scikit-learn
Documentation Dependencies [docs]¶
- mkdocs-material
- pymdown-extensions
- mkdocstrings[python]
- mkdocs-git-revision-date-localized-plugin
- mkdocs-minify-plugin
- mike
Development Dependencies [dev]¶
- pytest
- black
- coverage
- mypy
System-specific Notes¶
Windows¶
On Windows, ensure that the SQLite database file is accessible to all processes that need it, especially if you're running workers in separate processes or services.
macOS¶
No special configuration is needed for macOS.
Linux¶
On Linux, you might need to install the sqlite3 package if it's not already installed:
Troubleshooting¶
If you encounter issues during installation:
- SQLite version issues: Ensure your SQLite version is 3.8.3 or newer:
- Permission errors: If you get permission errors, try installing with:
-
Dependency conflicts: Use a virtual environment as described above.
-
Import errors after installation: Make sure your Python path is set correctly:
Next Steps¶
Now that you have GigQ installed, check out the Quick Start Guide to begin using it.