相关疑难解决方法(0)

在Ubuntu 16.04上安装python GDAL 2.1

尝试在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)

python linux gdal ubuntu-16.04

41
推荐指数
3
解决办法
5万
查看次数

无法在 macos Sierra 中的 python 3.6.1 中安装 gdal

我试图在 python 3.6.1 中安装 gdal,但出现以下错误。如何克服这一点?

bibinwilson ~ $ pip3 install gdal
Run Code Online (Sandbox Code Playgroud)
Collecting gdal   Downloading GDAL-2.2.1.tar.gz (475kB)
100% |????????????????????????????????| 481kB 397kB/s 
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/GDAL.egg-info
writing pip-egg-info/GDAL.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/GDAL.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/GDAL.egg-info/top_level.txt
writing manifest file 'pip-egg-info/GDAL.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found

Traceback (most recent call last):
  File "/private/var/folders/43/7yqv__4j5776m508kggs_dxm0000gn/T/pip-build-naebgem9/gdal/setup.py",
line 131, in fetch_config
    p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
line 707, in __init__
    restore_signals, start_new_session)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
  line …
Run Code Online (Sandbox Code Playgroud)

python macos gdal

8
推荐指数
1
解决办法
7128
查看次数

标签 统计

gdal ×2

python ×2

linux ×1

macos ×1

ubuntu-16.04 ×1