为什么 Python 包 Fiona 正在搜索 Microsoft.VC90.DebugCRT?

Why is Python package Fiona is searching for Microsoft.VC90.DebugCRT?

我安装了 Python 包 Fiona。当我尝试在我的应用程序中导入它时,出现以下错误:

File "C:\Anaconda3\lib\site-packages\fiona\collection.py", line 7, in

from fiona.ogrext import Iterator, ItemsIterator, KeysIterator

ImportError: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

我用了Windows的"Event Viewer",查了问题:

Activation context generation failed for "C:\Anaconda3\Library\bin\netcdf.dll". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

从这个 question 我了解到某些模块正在使用调试库,但它不应该这样做。我想也许是 GDAL?我如何检测是 Fiona 本身还是 Fiona 的某些依赖项在做?

我尝试卸载 Fiona(和 GDAL)并重新安装它们。

我可以使用以下方法成功卸载和安装它们:

conda uninstall fiona 
conda uninstall gdal
conda install fiona
conda install gdal

但错误依旧。

我使用以下页面中的 Windows 二进制文件让我的代码正常工作: http://www.lfd.uci.edu/~gohlke/pythonlibs/

并使用以下命令安装它们:

pip install C:\<path>\some_wheel.whl