简体   繁体   中英

Python sklearn installation Error on windows

when I try to install sklearn library(on windows): pip install sklearn I got this error:

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\Users\abhij\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\sklearn\datasets\tests\data\openml\292\api-v1-json-data-list-data_name-australian-limit-2-data_version-1-status-deactivated.json.gz'

Any direction would be heartily appreciated.

Use

pip install scikit-learn

instead of

pip install sklearn

Also 3.9 version might have bugs right now, so downgrade the version to 3.8

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