Adding an answer since I am not allowed to comment, and this question is still not answered.
The short answer is that LinearRegression from scikit-learn uses pseudo-inverse. See this answer for detailed description.
LinearRegression