安装Python环境
- 下载python-3.13.2-amd64.exe
- 双击python-3.13.2-amd64.exe,勾选Add python.exe to PATH
- 安装直到完成
验证Python环境是否正常:打开cmd命令行,并输入命令
python --version
![验证python的结果]()
安装Conda环境
- 下载Miniconda3-latest-Windows-x86_64.exe
- 双击Miniconda3-latest-Windows-x86_64.exe
- 安装直到完成
![]()
安装GDAL和Spatialite
从开始菜单打开打开Anaconda Prompt工具
添加包源:默认的源经常下载失败
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
-- 显示源信息
conda config --set show_channel_urls yes
--清理缓存,非必需
conda clean --all
创建环境gdal_env
conda create -n gdal_env python=3.13.2
激活 gdal_env 环境
安装GDAL和libspatialite
conda install -c conda-forge gdal libspatialite
验证是否安装成功
gdalinfo --version
conda list gdal
conda list libspatialite