ImportError: cannot import name inplace_column_scale

前端 未结 7 1036
孤城傲影
孤城傲影 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 00:53

    I had the same problem. I had originally installed scikit-learn by:

    sudo apt-get install python-sklearn
    

    When none of the other solutions posted here worked, I decided to uninstall my version of scikit-learn and reinstall it:

    pip2 install --user --install-option="--prefix=" -U scikit-learn  
    

    Used pip2 because I have two versions of python, so I use scikit-learn in Python 2.7

提交回复
热议问题