ImportError: cannot import name inplace_column_scale

前端 未结 7 1012
孤城傲影
孤城傲影 2020-12-11 00:32

Using Python 2.7 with scikit-learn 0.14 package. It runs well on some examples from the user guild expect the Linear Models.

Traceback (most recent call last         


        
7条回答
  •  有刺的猬
    2020-12-11 01:01

    I solve this problem by :

    pip uninstall scikit-learn
    

    and don't forget to rm the 'sklearn' folder in the python 'site-packages'

    rm -rf /path/Python-2.7.5/lib/python2.7/site-packages/sklearn/
    

    then reinstall the package:

    pip install scikit-learn
    

提交回复
热议问题