# Problem in installing scikit-learn

**URL:** <https://forum.anaconda.com/t/problem-in-installing-scikit-learn/44712>\
**Category:** Technical Topics\
**Created:** [November 3, 2022, 2:59pm UTC](https://forum.anaconda.com/t/problem-in-installing-scikit-learn/44712 "2022-11-03T14:59:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vadulam](https://avatars.discourse-cdn.com/v4/letter/v/80bc00/32.png) [@vadulam](https://forum.anaconda.com/u/vadulam)\
**Post date:** [November 3, 2022, 2:59pm UTC](https://forum.anaconda.com/t/problem-in-installing-scikit-learn/44712/1 "2022-11-03T14:59:17Z")

</div>

Problem in installing scikit-learn. I have given below the details. The problem seems to be within Anaconda. Any help will be appreciated.  
(base) PS C:\Users\test\Documents\PYTORCH\> conda activate pytorch

(pytorch) PS C:\Users\test\Documents\PYTORCH\> python

Python 3.8.13 (default, Oct 19 2022, 22:38:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32

Type “help”, “copyright”, “credits” or “license” for more information.

> > >

(pytorch) PS C:\Users\test\Documents\PYTORCH\> conda install scikit-learn

Collecting package metadata (current\_repodata.json): done

Solving environment: done

## Package Plan

environment location: C:\Users\test.conda\envs\pytorch

added / updated specs:

```
- scikit-learn

```

The following NEW packages will be INSTALLED:

fftw pkgs/main/win-64::fftw-3.3.9-h2bbff1b\_1 None

icc\_rt pkgs/main/win-64::icc\_rt-2022.1.0-h6049295\_2 None

joblib pkgs/main/win-64::joblib-1.1.1-py38haa95532\_0 None

scikit-learn pkgs/main/win-64::scikit-learn-1.1.2-py38hd77b12b\_0 None

scipy pkgs/main/win-64::scipy-1.9.1-py38he11b74f\_0 None

threadpoolctl pkgs/main/noarch::threadpoolctl-2.2.0-pyh0d69192\_0 None

Proceed ([y]/n)?y

Preparing transaction: done

Verifying transaction: done

Executing transaction: -

```
Windows 64-bit packages of scikit-learn can be accelerated using scikit-learn-intelex.

More details are available here: https://intel.github.io/scikit-learn-intelex

For example:

    $ conda install scikit-learn-intelex

    $ python -m sklearnex my_application.py

```

done

ERROR conda.core.link:\_execute(733): An error occurred while installing package ‘defaults::scikit-learn-1.1.2-py38hd77b12b\_0’.

Rolling back transaction: done

LinkError: post-link script failed for package defaults::scikit-learn-1.1.2-py38hd77b12b\_0

location of failed script: C:\Users\test.conda\envs\pytorch\Scripts.scikit-learn-post-link.bat

==\> script messages \<==

```
Windows 64-bit packages of scikit-learn can be accelerated using scikit-learn-intelex.

More details are available here: https://intel.github.io/scikit-learn-intelex

For example:

    $ conda install scikit-learn-intelex

    $ python -m sklearnex my_application.py

```

==\> script output \<==

stdout: subdir: win-64

stderr: ‘chcp’ is not recognized as an internal or external command,

operable program or batch file.

‘chcp’ is not recognized as an internal or external command,

operable program or batch file.

‘chcp’ is not recognized as an internal or external command,

operable program or batch file.

return code: 1

(pytorch) PS C:\Users\test\Documents\PYTORCH\>
