导入模块 (rasterio) 因 conda 或 pip install 而失败
Import module (rasterio) fail with conda or pip install
我正在尝试将 rasterio 安装到我的 python 环境中,但出现以下错误。我可以
conda install rasterio
安装没有出现错误,但是当我尝试导入时出现以下错误
from rasterio._base import eval_window, window_shape, window_index
ImportError: DLL load failed: The specified module could not be found.
如果我尝试
pip install rasterio
安装时出错:
rasterio/_base.c(263) : fatal error C1083: Cannot open include file:'cpl_conv.h': No such file or directory
error: command 'C:\Users\Rdebbout\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2
----------------------------------------
Failed building wheel for rasterio
我在尝试导入 fiona 模块时遇到了同样的问题。 and/or DLL 如何加载到哪里?我对此一无所知,非常感谢有关如何解决此问题的任何帮助或指导。
我在 windows 7.
上使用 64 位版本的 spyder
我建议尝试 ioos anaconda 食谱 (https://anaconda.org/ioos/rasterio)。
conda install -c https://conda.anaconda.org/ioos rasterio
.
我 运行 遇到与您在尝试使用标准 anaconda 版本安装更新版本的 rasterio 时看到的相同 DLL 问题。
我遇到了同样的问题。重装解决了。
conda install -f rasterio
如果您仍然遇到问题。您可以使用以下方法创建一个新的 conda 环境:
conda create -n envname
安装后使用:conda install -c conda-forge/label/dev rasterio
我正在尝试将 rasterio 安装到我的 python 环境中,但出现以下错误。我可以
conda install rasterio
安装没有出现错误,但是当我尝试导入时出现以下错误
from rasterio._base import eval_window, window_shape, window_index
ImportError: DLL load failed: The specified module could not be found.
如果我尝试
pip install rasterio
安装时出错:
rasterio/_base.c(263) : fatal error C1083: Cannot open include file:'cpl_conv.h': No such file or directory
error: command 'C:\Users\Rdebbout\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2
----------------------------------------
Failed building wheel for rasterio
我在尝试导入 fiona 模块时遇到了同样的问题。 and/or DLL 如何加载到哪里?我对此一无所知,非常感谢有关如何解决此问题的任何帮助或指导。
我在 windows 7.
上使用 64 位版本的 spyder我建议尝试 ioos anaconda 食谱 (https://anaconda.org/ioos/rasterio)。
conda install -c https://conda.anaconda.org/ioos rasterio
.
我 运行 遇到与您在尝试使用标准 anaconda 版本安装更新版本的 rasterio 时看到的相同 DLL 问题。
我遇到了同样的问题。重装解决了。
conda install -f rasterio
如果您仍然遇到问题。您可以使用以下方法创建一个新的 conda 环境:
conda create -n envname
安装后使用:conda install -c conda-forge/label/dev rasterio