简体   繁体   English

如何在 Windows 10 和 python 3.7 中使用 conda 安装 gdal? 安装geoviews后,我再也没有设法使用gdal

[英]How to install gdal using conda in Windows 10 with python 3.7? After I installed geoviews I´ve never managed to use gdal again

I had to install the geoviews package, which install geopandas and downgraded my gdal version in a way I lost the driver for jp2 files (ECWJPEG2000).我必须安装geoviews package,它安装geopandas并降级我的gdal版本,因为我丢失了jp2文件(ECWJPEG2000)的驱动程序。 I tryed to re-install and I´ve never managed to use again.我尝试重新安装,但我再也没有设法再次使用。 I use conda for installing and nothing happens.我使用 conda 进行安装,但没有任何反应。 I get a message on the shell saying that the instalation was done, but nothing happens.我在 shell 上收到一条消息,说安装已完成,但没有任何反应。 I can´t import gdal at all.我根本无法导入 gdal。 If I use pip for installing, I have a huge error message in red saying that there´s something with the visual studio cl.exe.如果我使用 pip 进行安装,我会收到一条巨大的红色错误消息,说明 Visual Studio cl.exe 有问题。 But the file is there, and visual studio is already whithin my enviromnetal variables.但是文件在那里,Visual Studio 已经在我的环境变量中了。 I already reinstall OSGEO4W but it didn´t work.我已经重新安装了 OSGEO4W,但它没有用。

First, you can try to install gdal from the wheels file here .首先,您可以尝试从 Wheels 文件安装gdal Here is another website that walks you through installing all of the other dependencies for geopandas.是另一个网站,可引导您安装 geopandas 的所有其他依赖项。 You will see that for gdal, you will also have to modify your windows path variable to be able to use it from the command line.您将看到对于 gdal,您还必须修改 windows 路径变量才能从命令行使用它。 This could be a reason that your gdal installation is not complete.这可能是您的 gdal 安装未完成的原因。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM