尝试从Pycharm安装sklearn时出错arrayobject.h不能是绝对的 [英] Error while trying to install sklearn from Pycharm | arrayobject.h cannot be absolute

查看:277
本文介绍了尝试从Pycharm安装sklearn时出错arrayobject.h不能是绝对的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

完整的错误声明:

ValueError:路径'/home/andy/anaconda3/lib/python3.5/sitepackages/numpy/core/include/numpy/arrayobject.h'不能是绝对的

ValueError: path '/home/andy/anaconda3/lib/python3.5/sitepackages/numpy/core/include/numpy/arrayobject.h' cannot be absolute

我通过从此 link ,然后使用pip从cmd安装它.

I have installed Scipy and numpy (mkl) version by downloading the compiled wheel files from this link and then installing it from the cmd using pip.

我更像是一个python noob,我的重点主要是机器学习.请帮我.

I'm more of a python noob, my focus is primarily machine learning. Kindly help me out.

推荐答案

听,我今天遇到了类似的问题.

Listen, i encountered today a similar problem.

您是否使用Python 3.6(最新版本)?

Do you use Python 3.6 (Latest version) ?

如果这样做,您可能会考虑降级(实际上是重新安装)到Python 3.5.显然, sklearn 目前在支持Python 3.6方面几乎没有问题.

If you do, you might consider downgrading (reinstalling actually) to Python 3.5.. apparently, sklearn has few problems supporting Python 3.6 at the moment.

这篇关于尝试从Pycharm安装sklearn时出错arrayobject.h不能是绝对的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆