- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 Windows 10 上工作,在 anaconda 提示符下执行 pip install rasterio 时遇到错误。
(base) C:\Users\skywalker>pip install rasterio
Collecting rasterio
Using cached https://files.pythonhosted.org/packages/57/84/be5689470a73f5f8988cf44b81cb3493ebb8abbbebb69768c8fc86fccdd5/rasterio-1.0.24.tar.gz
Complete output from command python setup.py egg_info:
INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
Command "python setup.py egg_info" failed with error code 1 in C:\Users\SKYWAL~1\AppData\Local\Temp\pip-install-iyhe142u\rasterio\
最佳答案
如果您使用的是 anaconda,则可以执行以下操作:
conda install -c conda-forge <package-name>
在我看来,在 Windows 上使用 anaconda 总是更好。
关于python - pip install rasterio 时遇到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56962959/
我正在尝试在 python 2.7 安装上将我的 rasterio 版本从 0.25 更新到 0.32,但遇到了麻烦。问题。有关如何修复它的任何信息? Running setup.py clean
预期行为和实际行为。 我希望使用 rasterio 编译一个脚本使用 pyinstaller 进入可执行文件.该脚本在我的 python 环境中运行良好。但是我无法使用 PyInstaller 将其卡
给定一个随机光栅 tif 文件,我想使用 Python/rasterio 将所有值为 0 的单元格设置为“无数据”。我似乎找不到关于这个简单操作的文档。 import rasterio src = r
我在 Windows 10 上工作,在 anaconda 提示符下执行 pip install rasterio 时遇到错误。 (base) C:\Users\skywalker>pip instal
我有以下 numpy 数组: supervised.shape (1270, 1847) 我正在尝试使用以下代码使用rasterio将其保存到GeoTIFF: with rasterio.open('
我正在使用 Rasterio 在 Python 中读取 jpg 图像及其关联的世界文件,如下所示: import rasterio with rasterio.open('/path/to/file.
我正在尝试平铺大图像(.img 格式,但可能是 geotiff),但是我已经使用 rasterio mask 裁剪了图像它返回一个掩码数组和一个单独的仿射对象。 from rasterio impor
我正在尝试按照一些教程学习哨兵卫星。部分代码是这样的。 import rasterio as rio import geopandas as gpd nReserve = gpd.read_file(
我有一个卫星图像光栅文件和一个由多个离散多边形组成的 Shapefile。我想从光栅文件中为每个多边形单独提取(或屏蔽)Numpy 图像数组。 目前,我使用 Fiona 导入 Shapefile 并创
我将栅格存储在 Amazon S3 存储桶中,并希望使用我的 Django docker 容器中已安装的栅格库打开特定对象。 AWS_ACCESS_KEY_ID 和 AWS_ACCESS_KEY_ID
使用rasterio时,我可以执行以下任一方法来获取栅格的单个波段: import rasterio import numpy as np dataset = rasterio.open('filep
我正在使用 Dask 中的 NDVI 计算示例代码。代码链接如下。 code for computing NDVI 使用以下代码块创建 xarray 数据集时, import xarray as xr
我的 GDAL/遇到此错误问题 INPUT_raster = "E:\myraster.asc" ds = gdal.Open(INPUT_raster, gdal.GA_ReadOnly) band
我是 gdal 和 c++ 的新手,我正在尝试创建一个按 block 读取栅格的函数(使用 RasterIO 而不是 ReadBlock)对值执行某些操作并将结果写入新的栅格文件 我收到一个错误: U
我想使用分水岭作为界限来裁剪栅格数据。我已经使用 Fiona 和 Rasterio 进行了尝试。 这是我的代码: import fiona import rasterio from rasterio.
我使用 pip install rasterio 安装了 rasterio,并尝试运行一个简单的命令,如 rasterio.open(path/file),但收到以下错误消息: 模块“rasterio
我有一个在 Ubuntu 16.04.4 LTS 上运行的 AWS EC2 p2.xlarge 实例,它是使用 AWS Deep Learning AMI (DLAMI) 创建的.我正在使用 kera
在栅格数据集上应用多边形掩码时,我一直无法处理 Python 的 rasterio 包中没有数据值的问题。这个特殊的栅格是具有 7 个波段的 Landsat uint8,并且没有固有地指定无数据值,因
我已经能够使用 matplotlib 绘制和显示光栅图像。那部分是成功的。我坚持的部分是能够以某种方式保存该情节。对于 rasterio,我找到了两个有用的教程: https://rasterio.r
我试图在 python 中将 jp2 栅格产品作为栅格打开,但当我们使用“raterio”和“gdal”包时没有成功。 我收到此错误: RasterioIOError: 'b4.jp2' not re
我是一名优秀的程序员,十分优秀!