'ImportError: DLL load failed' when fetching MNIST original via sklearn
'ImportError: DLL load failed' when fetching MNIST original via sklearn
我正在使用 Python 3.5.4 64 位的 Win10 PC,目前我正在 virtualenv 中测试 jupyter notebook。
以下代码导致错误:
from sklearn.datasets import fetch_mldata
mnist = fetch_mldata("MNIST original")
mnist
这是完整的错误信息:
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
或英文:
ImportError: DLL load failed: The specified module could not be found.
到目前为止,我已经找到了几个 Whosebug 线程和其他帖子,它们具有相同的错误消息和各种 Python 包。通常 x86 和 x64 安装的混合(例如 here or here)会受到指责,但我的安装似乎一切正常。
我已经完全重新安装 Python,但我仍然遇到同样的错误...
有什么方法可以检查可能导致此错误的原因吗?
我在加载不同类型的数据集时遇到了类似的问题,但使用的是 Tensorflow。最简单的解决方法就是卸载你之前的Python 3.5/3.6.x,然后安装latest Python 3.6.6 (as of now) unless 3.7 is supported officially
。
Also remember to delete your old python site packages from appdata in Windows. Althrough it won't obstruct with your new python installation but its a good way to clear off your old Python installed packages.
我正在使用 Python 3.5.4 64 位的 Win10 PC,目前我正在 virtualenv 中测试 jupyter notebook。
以下代码导致错误:
from sklearn.datasets import fetch_mldata
mnist = fetch_mldata("MNIST original")
mnist
这是完整的错误信息:
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
或英文:
ImportError: DLL load failed: The specified module could not be found.
到目前为止,我已经找到了几个 Whosebug 线程和其他帖子,它们具有相同的错误消息和各种 Python 包。通常 x86 和 x64 安装的混合(例如 here or here)会受到指责,但我的安装似乎一切正常。 我已经完全重新安装 Python,但我仍然遇到同样的错误...
有什么方法可以检查可能导致此错误的原因吗?
我在加载不同类型的数据集时遇到了类似的问题,但使用的是 Tensorflow。最简单的解决方法就是卸载你之前的Python 3.5/3.6.x,然后安装latest Python 3.6.6 (as of now) unless 3.7 is supported officially
。
Also remember to delete your old python site packages from appdata in Windows. Althrough it won't obstruct with your new python installation but its a good way to clear off your old Python installed packages.