【发布时间】:2016-12-03 12:08:43
【问题描述】:
我正在尝试在 Windows 7 上设置所有这些。这是我尝试导入 sklearn 或 scipy 时遇到的错误。我已经使用 whl 文件安装了 sklearn 和 scipy。我不记得我曾经安装过什么 numpy 但我可以毫无问题地导入 numpy。
【问题讨论】:
标签: python windows numpy scipy scikit-learn
我正在尝试在 Windows 7 上设置所有这些。这是我尝试导入 sklearn 或 scipy 时遇到的错误。我已经使用 whl 文件安装了 sklearn 和 scipy。我不记得我曾经安装过什么 numpy 但我可以毫无问题地导入 numpy。
【问题讨论】:
标签: python windows numpy scipy scikit-learn
在我的情况下I couldn't install scipy usingpip install scipy,我终于设法通过使用来自here 的 Scipy 安装它,并按如下方式安装它:
pip3 install scipy-0.19.0rc2-cp36-cp36m-win_amd64.whl
当我终于安装了 scipy 时,我的 numpy 停止工作并开始出现该错误。所以我决定从here安装numpy:
pip3 install numpy-1.12.0+mkl-cp36-cp36m-win_amd64.whl
确保为你的架构和 Python 版本安装正确的 numpy。
希望对你有所帮助,加油。
【讨论】: