GDAL for python安装的心酸路

前言

pip install gdal 在我们的本子上似乎并不成功,尝试了网上很多种方法,但是RBL

解法

1.下载

GDAL本地安装
这里注意几点

  • 什么版本就下对应的Gdal,我的是python3.8,故此,GDAL-3.4.3-cp38-cp38-win_amd64.whl.
  • 官网的下载老慢了,这里已经上传了网盘:【传送门

2.安装

  • 打开cmd cd到下载的路径即可,比如
    输入:cd /d C:\Users\12810\Downloads\Compressed
  • 安装用pip pip install GDAL-3.4.3-cp38-cp38-win_amd64.whl

3.测试

C:\Users\12810\Downloads\Compressed\GDAL-3.4.3-cp38-cp38-win_amd64>python
Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32

Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated.  Libraries may fail to load.  To activate this environment
please see https://conda.io/activation

Type "help", "copyright", "credits" or "license" for more information.
>>> from osgeo import gdal
>>> print("GDAL's version is:" + gdal.__version__)
GDAL's version is:3.4.3
>>>

搞定,收工。

相关推荐

  1. GDAL for python安装心酸

    2024-03-17 17:38:05       22 阅读
  2. 安装顺序

    2024-03-17 17:38:05       32 阅读
  3. 安装顺序

    2024-03-17 17:38:05       44 阅读
  4. 优秀网络安全运营专家成长之

    2024-03-17 17:38:05       33 阅读
  5. 编程中“游戏心切心态影响及其对策探讨

    2024-03-17 17:38:05       27 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-17 17:38:05       19 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-17 17:38:05       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-17 17:38:05       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-17 17:38:05       20 阅读

热门阅读

  1. SpringBoot程序的核心功能及优点

    2024-03-17 17:38:05       18 阅读
  2. Spring体系架构

    2024-03-17 17:38:05       20 阅读
  3. 【TypeScript系列】缩小类型范围

    2024-03-17 17:38:05       23 阅读
  4. while 循环语句

    2024-03-17 17:38:05       19 阅读
  5. Elasticsearch(14) match_phrase_prefix的使用

    2024-03-17 17:38:05       18 阅读
  6. 策略模式业务实战

    2024-03-17 17:38:05       24 阅读
  7. MongoDB聚合运算符:$first

    2024-03-17 17:38:05       20 阅读
  8. 11. C++空基类优化

    2024-03-17 17:38:05       17 阅读
  9. 微信小程序睡眠X秒【while循环模式】

    2024-03-17 17:38:05       19 阅读