Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install scikit-learn using conda

Shulou Source: shulou.com Published: 2022-06-02 06:38:54 10月03日 Update

This article focuses on "how to use conda to install scikit-learn", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install scikit-learn using conda.

Installation

If you are using a version of Python released by Anaconda, you can install the scikit-learn machine learning library using the following command:

Conda install-c anaconda scikit-learn

Verification

After the installation is complete, you can use the following methods to simply verify the version. From the version information displayed, the author currently uses a version number of 0.19.1 scikit-learn:

Bj-m-211510a:tools jinguang1 $python

Python 3.6.5 | Anaconda, Inc. | (default, Apr 26 2018, 08:42:37)

[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

> import sklearn

> sklearn.version

'0.19.1'

At this point, I believe you have a deeper understanding of "how to use conda to install scikit-learn". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Version learning content method verification practical deeper author information interest command practicality practical easy to operate more friends machine website channel Laian Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Huawei macOS MariaDB Xiaomi