我已经能够让所有其他包在我的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...我也尝试过使用命令行来安装它,但也没有成功。任何帮助都将不胜感激。谢谢!
发布于 2018-07-04 17:13:19
要让scikit-learn/sklearn或任何其他包在pycharm中工作,为pycharm配置的python解释器必须找到那些已安装的包和其他依赖项。
给定示例中的特定错误可能是由于缺少gcc和make等开发工具。在安装软件包之前,尝试运行以下命令(假设它是ubuntu linux) -
sudo apt-get install build-essential有关其他发行版的信息,请参阅here
此外,您还可以安装pycharm python解释器可以从设置中找到的包。

https://stackoverflow.com/questions/51164281
复制相似问题