在 Ubuntu 上安装 GDAL
Installing GDAL on Ubuntu
我无法使用针对 python 的最新 anaconda 在 Ubuntu 上安装 gdal 3.6 如何修复它?我明白了。错误:
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
如果您无法使用 conda,此安装对我有用 python 3:
sudo apt-get update && apt-get install -y \
binutils \
libproj-dev \
gdal-bin \
libgdal-dev \
python3-gdal \
python3-pip \
python-numpy \
python-dev
pip install pygdal>=2.1.2,<2.1.3
祝你好运,这个库不是一个容易使用的库!
我无法使用针对 python 的最新 anaconda 在 Ubuntu 上安装 gdal 3.6 如何修复它?我明白了。错误:
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
如果您无法使用 conda,此安装对我有用 python 3:
sudo apt-get update && apt-get install -y \
binutils \
libproj-dev \
gdal-bin \
libgdal-dev \
python3-gdal \
python3-pip \
python-numpy \
python-dev
pip install pygdal>=2.1.2,<2.1.3
祝你好运,这个库不是一个容易使用的库!