'How to install sklearn on visual studio 2019?

I'm working on a sample project with python language and visual studio 2019 IDE and I want to know how/where can I install packages like "sklearn"?

When I run my project I encounter with this error :

  Message=No module named 'sklearn'
  Source=C:\PythonApplication1\PythonApplication.py
  StackTrace:
  File "C:\PythonApplication1\PythonApplication.py", line 12, in <module>
  from sklearn.base import BaseEstimator

I was looking on the Internet and found this link about scikit-learn but it doesn't help to resolve my issue.



Solution 1:[1]

Open Terminal in VSCode (Ctrl + Shift + ~) and run the below command

pip install -U scikit-learn

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Cpt Kitkat