尝试在UBUNTU虚拟机中安装gdal2.1时,这将是我的命令行序列.我的虚拟机是UBUNTU 16.04 LTS(64位)我需要gdal2.1,特别是Python绑定在python中使用它.当前安装的python版本是2.7.11+,我安装了numpy,因为我知道GDAL是必要的.现在的命令行了
我在GDAL2.1的Pypi页面中找到的说明:
antonio19812@antonio19812-VirtualBox:~$ sudo apt-get install libgdal1i
libgdal1i is already the newest version (1.11.3+dfsg-3build2).
antonio19812@antonio19812-VirtualBox:~$ sudo apt-get install libgdal1-dev
libgdal1-dev is already the newest version (1.11.3+dfsg-3build2).
antonio19812@antonio19812-VirtualBox:~$ sudo pip install gdal
Collecting gdal Downloading GDAL-2.1.0.tar.gz (619kB) 100% |????????????????????????????????| 624kB 247kB/s
Installing collected packages: gdal
Running setup.py install for gdal ... error
Complete output from command /usr/bin/python -u -c "import setuptools,
tokenize;file='/tmp/pip-build-_sHDUY/gdal/setup.py';
exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n',
'\n'), file, 'exec'))" install --record /tmp/pip-eOB65J-record/install-
record.txt --single-version-externally-managed --compile:
running install
running build
running …
Run Code Online (Sandbox Code Playgroud)