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>