A tool to install GDAL wheels on Windows and wrapper for pip on Unix
Project description
You know installing gdal can be annoying especially on windows. That is where "Python GDAL Installer" comes in.
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gdal_installer-0.2.0.tar.gz.
File metadata
- Download URL: gdal_installer-0.2.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
386550bd341f2d3cff6132443232d1886871b9d82489bbaf1f53f3bfa882d5e5
|
|
| MD5 |
e462ab4fcc47efcee616a6bf35a01db4
|
|
| BLAKE2b-256 |
38d101d036e07da12413293af908a28f2c68fbc9d73524fec9bd74fb2ae62f65
|
File details
Details for the file gdal_installer-0.2.0-py3-none-any.whl.
File metadata
- Download URL: gdal_installer-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dba79abbf7f9891658eb93b13ee06c9e85d0a62e7d661efa9dd22f472b7f8a5e
|
|
| MD5 |
bc086331dd3bc8259a0b124beef4bfaf
|
|
| BLAKE2b-256 |
9426b269e9958aff4d0276689eeb43244b22b91536296215aa7cf0e792a7d86a
|