简体   繁体   中英

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.

在 VSCode 中打开终端(Ctrl + Shift + ~)并运行以下命令

pip install -U scikit-learn

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM