简体   繁体   English

重新安装适用于Python 2.7的GDAL库

[英]re-installing GDAL library for Python 2.7

I am trying to install GDAL library for Python 2.7 and I have followed different available instructions such as 我正在尝试安装适用于Python 2.7的GDAL库,并且遵循了不同的可用说明,例如

http://pythongisandstuff.wordpress.com/2011/07/07/installing-gdal-and-ogr-for-python-on-windows/#comment-181 http://pythongisandstuff.wordpress.com/2011/07/07/installing-gdal-and-ogr-for-python-on-windows/#comment-181

Unfortunately I was not successful up to now and faced a lot of difficulties. 不幸的是,到目前为止我还没有成功,遇到了很多困难。 I would like to removed all the installed files and re-install the GDAL library one more time. 我想删除所有已安装的文件,然后再重新安装GDAL库。 To be honest, I afraid that I may remove something by mistake therefore I would like to have your guidance to help me which steps I should do to remove the installation and start from scratch. 老实说,我担心我可能会误删除某些内容,因此,我希望得到您的指导,以帮助我应该采取哪些步骤来删除安装并从头开始。

this is the best source you can find for python libraries pre-compiled for windows.. 这是可以为Windows预编译的python库的最佳资源。

http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal

download the version you want and enjoy.. 下载您想要并享受的版本。

ohk, looks like i got it working by following the same method.. try this... ohk,看来我是按照相同的方法来工作的。

  1. download this and unzip it and keep the gdalwin32-1.7 in c drive (or any other folder where you want it to), 下载这个并将其解压缩并保存在c盘的gdalwin32-1.7(或你希望它到任何其他文件夹),
  2. then download this and install it. 然后下载这个并安装它。
  3. create a folder inside the gdalwin32 in c drive called data, 在C盘的gdalwin32内部创建一个名为data的文件夹,
  4. update your system environment variables, add C:\\gdalwin32-1.7\\bin in path and new varible called GDAL_DATA with value C:\\gdalwin32-1.7\\data . 更新系统环境变量,在路径中添加C:\\gdalwin32-1.7\\bin和值C:\\gdalwin32-1.7\\data新变量GDAL_DATA

and thats it. 就是这样。 it working on my computer.. 它可以在我的计算机上工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 删除python,然后在Mac OSX上重新安装 - Removing python and then re-installing on Mac OSX Python 请求 RequestsDependencyWarning 重新安装相同版本的库后消失 - Python requests RequestsDependencyWarning which disappears after re-installing the same version of the library 重新安装 python 后,Django 项目找不到 python 解释器 - python interpreter not found for Django project after re-installing python 重新安装sklearn后出现错误 - Error after re-installing sklearn 重新安装 OpenCV(上次使用 dll“捆绑包”(exe),现在通过 Windows 上的 opencv-python-contrib - Re-installing OpenCV (last time with dll "bundle" (exe) and now through opencv-python-contrib on Windows 使用python在appium中运行测试时如何防止每次重新安装应用程序 - How to prevent app from re-installing each time when I run tests in appium using python 使用conda在Windows上安装Gdal python库(DLL加载失败) - Installing gdal python library on windows using conda (DLL load failed) 为Python安装GDAL - Installing GDAL for Python 遇到502重新安装django-haystack - Encountering 502 re-installing django-haystack matplotlib,重新安装后每条文字都是粗体 - matplotlib, every text is bold after re-installing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM