You know installing gdal can be annoying especially on windows. That is where "Python GDAL Installer" comes in.
Check the code and contribute: https://github.com/celray/python-gdal-installer
Python GDAL Installer
A simple tool to automatically install GDAL Python bindings on Windows and Unix systems. This tool handles the complex process of installing GDAL with proper wheel files for Windows and manages pip installation for Unix systems.
Features
- Automatic detection of Python version and CPU architecture
- Pre-compiled wheel installation for Windows systems
- Support for multiple Python versions (3.10-3.13)
- Support for different CPU architectures (win32, win_amd64, win_arm64)
- Fallback to pip installation on Unix systems
Requirements
- Python 3.10 or higher
- pip package manager
- Internet connection
- Required Python packages:
- requests
- tqdm
Installation
- Install required packages:
pip install gdal-installer
- Install python-gdal:
gdal-installer
How It Works
Windows Systems
- Detects Python version and CPU architecture
- Downloads appropriate GDAL wheel from pre-compiled binaries
- Installs the wheel using pip
- Shows download progress with a progress bar
Unix Systems
- Uses pip to install GDAL directly from PyPI
- Installs to user site-packages using --user flag
Supported Configurations
Python Versions
- Python 3.10
- Python 3.11
- Python 3.12
- Python 3.13
Windows Architectures
- win32 (32-bit)
- win_amd64 (64-bit)
- win_arm64 (ARM64) - except for python 3.10
Troubleshooting
-
If you get a "No GDAL wheel found" error:
- Verify your Python version is supported
- Check if your CPU architecture is supported
- Ensure you have internet connectivity
-
For Unix systems:
- You might need to install GDAL system libraries first
- Some systems might require
--break-system-packagesflag (not included by default)
Contributing
Feel free to open issues or submit pull requests if you find bugs or have suggestions for improvements.
License
MIT License
Credits
GDAL wheels for Windows are sourced from cgohlke/geospatial-wheels.
Metadata
Release files for gdal-installer 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gdal_installer-1.0.2.tar.gz | 4.6 kB | Without provenance | Details for gdal_installer-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gdal_installer-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for gdal_installer-1.0.2-py3-none-any.whl |
Total release size: 9.9 kB
Release files / gdal_installer-1.0.2.tar.gz
| Download URL | gdal_installer-1.0.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a27773a01aa67e147815aa3dc8ec8c9d03d6c61683a1c9ece9b16663e5bec64b
|
|
BLAKE2b-256 checksum How to use checksums |
b03ba024b6647f1e61bb60bb732a9525b4ead6e5b1b8f1b00ccc6f17c4e8e4ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Release files / gdal_installer-1.0.2-py3-none-any.whl
| Download URL | gdal_installer-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca5e9dc12f2428d12c970901d74fc167bec57fc929a36c80242f5b625a73d0bc
|
|
BLAKE2b-256 checksum How to use checksums |
72037179bec8baf0e9086bf84422ab55ef09aa2bdba10d4e4cd08b986920173b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Security for gdal-installer 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.