- download Windows embeddable package (64-bit)
- unpack to a folder, eg.,
d:\misc\python-3.9.13-embed-amd64
- download
get-pip.pyfrom here - move to your python folder
- open command prompt, change to your folder
- open
python39._pthin text editor and uncommentimport site, save - run
python get-pip.py
- download and install Visual Studio Build Tools (if not yet installed)
- select "Desktop development with C++"
- download the wheel file for (unofficial) Fiona binaries from here, eg.,
Fiona-1.8.21-cp39-cp39-win_amd64.whl - download the wheel file for (unofficial) GDAL binaries from here, eg.,
GDAL-3.4.3-cp39-cp39-win_amd64.whl - download the wheel file for (unofficial) GDAL binaries from here, eg.,
hdbscan-0.8.28-cp39-cp39-win_amd64.whl - move both wheel files to your Python folder
- install with
python -m pip install GDAL-3.4.3-cp39-cp39-win_amd64.whl Fiona-1.8.21-cp39-cp39-win_amd64.whl hdbscan-0.8.28-cp39-cp39-win_amd64.whl
- download
sqlite-dll-win64-x64-xxxxxxx.zip - rename
sqlite3.dlltosqlite3.dll.bak - unpack content of zip file to your Python folder
- download
mod_spatialite-5.0.1-win-amd64.7z - unpack content to your Python folder
Note: Reason why we overwrite sqlite3.dll is because creation of the spatial enviroment fails with updateTableTriggers: "no such module: rtree".
- create
requirements.txt, for example:
geopandas
geojson
- run
python -m pip install -r requirements.txt
- run
python -c "import geopandas;"(no error should occur)