【发布时间】:2018-07-04 17:13:19
【问题描述】:
我已经能够让所有其他软件包在我的 PyCharm 环境中运行,但是当我尝试下载 sklearn 或 scikit-learn 时出现错误。错误开始如下:
Collecting scikit-learn
Using cached https://files.pythonhosted.org/packages/f5/2c/5edf2488897cad4fb8c4ace86369833552615bf264460ae4ef6e1f258982/scikit-learn-0.19.1.tar.gz
Building wheels for collected packages: scikit-learn
Running setup.py bdist_wheel for scikit-learn: started
Running setup.py bdist_wheel for scikit-learn: finished with status 'error'
Complete output from command "/Users/.../PycharmProjects/StartingProject/VE Test/bin/python" -u -c "import setuptools, tokenize;__file__='/private/var/folders/h0/0p8xxjc12kdgydxx7hpky_yc0000gn/T/pycharm-packaging/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/h0/0p8xxjc12kdgydxx7hpky_yc0000gn/T/pip-wheel-wy8d4dqc --python-tag cp37:
Partial import of sklearn during the build process.
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/Users/.../PycharmProjects/StartingProject/VE Test/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE...
我也尝试使用我的命令行来安装它,但我也没有找到成功。任何帮助,将不胜感激。谢谢!
【问题讨论】:
-
我建议安装 Anaconda,我相信它会附带 scikit 和其他数据科学工具
-
谢谢,我已经尝试过了,但我也在尝试使用 tensorflow,我无法在 anaconda 中正常工作,但我可以在 pycharm 中使用。因此,我正在尝试安装 scikit,但我永远无法同时安装它们。
-
Pycharm 只是指向 Conda 环境,“Pycharm 内”没有安装与“conda install”有任何不同
标签: python scikit-learn pycharm