Cannot import scikits-learn even though it seems to be installed

前端 未结 4 1129
情书的邮戳
情书的邮戳 2021-01-01 10:06

Per the scikit-learn user guide, I installed scikit-learn using pip install -U scikit-learn.

So using pip search scikit-learn, I get this s

4条回答
  •  臣服心动
    2021-01-01 10:47

    Got same problem, @Alan gave correct solution but hard way. Here are easy steps to resolve issue, as i am on mac osx, giving steps for same.

    Ameys-Mac-mini:~ amey$ python --version
    Python 2.7.2
    Ameys-Mac-mini:~ amey$ cd /Library/Python/2.7/site-packages/
    Ameys-Mac-mini:site-packages amey$ brew install gcc
    Ameys-Mac-mini:site-packages amey$ sudo pip install -t . numpy scipy scikit-learn 
    

提交回复
热议问题