2017-06-20 110 views
7

我试图安装使用pip install auto-sklearn自动sklearn,但它引发的错误:自动sklearn安装错误

Command "/usr/bin/python3.5 -u -c " 
    import setuptools, tokenize; 
    __file__='/tmp/pip-build-tl8y2tfg/psutil/setup.py'; 
    f=getattr(tokenize, 'open', open)(__file__); 
    code=f.read().replace('\r\n', '\n'); 
    f.close(); 
    exec(compile(code, __file__, 'exec')) 
"install 
    --record /tmp/pip-7t8rbku0-record/install-record.txt 
    --single-version-externally-managed --compile" 
failed with error code 1 in /tmp/pip-build-tl8y2tfg/psutil/ 

没有什么在我的/tmp/开始的目录“pip-”。

我完全按照manual的步骤完成所有步骤,但仍然存在此错误。

我也尝试使用this question的命令,但在两种情况下都得到相同的错误。

我的操作系统是Ubuntu 16.04.2。

我该如何安装auto-sklearn?

+0

http://automl.github.io/auto-sklearn/stable/installation.html –

+0

我从这里开始了所有步骤。 – evaleria

+0

你可以添加你的操作系统的问题? –

回答

0

使用sudo写入系统库通常会导致麻烦,因为像PATH这样的重要变量在不同的id下运行时会有所不同。相反,请按照manual中的建议操作,然后安装在以普通用户身份运行的virtualenv中。