Saturday, March 25, 2023

How to install Scikit Learn and set it up

Better to use virtualenv 

pip install -U scikit-learn

In order to check your installation you can use


python -m pip show scikit-learn  # to see which version and where scikit-learn is installed

python -m pip freeze  # to see all packages installed in the active virtualenv

python -c "import sklearn; sklearn.show_versions()"


These are some of the outputs 


python -m pip show scikit-learn 

Name: scikit-learn

Version: 1.2.2

Summary: A set of python modules for machine learning and data mining

Home-page: http://scikit-learn.org

Author: None

Author-email: None

License: new BSD

Location: /Users/userrm/Documents/RR/projects/POCs/AIBot/BW2/server/venv/lib/python3.8/site-packages

Requires: threadpoolctl, scipy, numpy, joblib

Required-by: 



python -m pip freeze

bidict==0.22.1

click==8.1.3

Flask==2.2.3

Flask-SocketIO==5.3.3

importlib-metadata==6.1.0

itsdangerous==2.1.2

Jinja2==3.1.2

joblib==1.2.0

MarkupSafe==2.1.2

numpy==1.24.2

pandas==1.5.3

python-dateutil==2.8.2

python-engineio==4.4.0

python-socketio==5.8.0

pytz==2023.2

scikit-learn==1.2.2

scipy==1.10.1

six==1.16.0

threadpoolctl==3.1.0

Werkzeug==2.2.3

zipp==3.15.0


references:

https://scikit-learn.org/stable/install.html


No comments:

Post a Comment