gpt4 book ai didi

python - 在 Ubuntu 上安装 GDAL

转载 作者:太空宇宙 更新时间:2023-11-04 02:55:23 25 4
gpt4 key购买 nike

我无法使用适用于 python 3.6 的最新 anaconda 在 Ubuntu 上安装 gdal 我该如何解决?我明白了。错误:

UnsatisfiableError: The following specifications were found to be in conflict:
- gdal -> numpy 1.8* -> python 2.6* -> openssl 1.0.1*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.

最佳答案

看来您尝试使用 python 2.6 安装 gdal,而您的 anaconda 是 python 3.6。

要安装具有特定 python 版本的 gdal(或任何包),请创建一个 conda 环境:

$ conda create -n <myenvname> python=<version>

然后激活环境:

$ source activate <myenvname>

然后,安装gdal:

$ conda install gdal

关于python - 在 Ubuntu 上安装 GDAL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42571957/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com