can't use scikit-learn - “AttributeError: 'module' object has no attribute …”

后端 未结 9 739
失恋的感觉
失恋的感觉 2020-12-31 02:57

I\'m trying to follow this tutorial of scikit-learn (linear regression).

I\'ve installed scikit through pip install -U scikit-learn, I use python 2.7 an

9条回答
  •  一个人的身影
    2020-12-31 03:35

    I solved this issue by inserting the following lines of code:

    import sklearn 
    from sklearn.linear_model import LinearRegression
    

提交回复
热议问题