# Import and use scikit-learn

**URL:** <https://discourse.psychopy.org/t/import-and-use-scikit-learn/29213>\
**Category:** Coding\
**Created:** [May 19, 2022, 6:14pm UTC](https://discourse.psychopy.org/t/import-and-use-scikit-learn/29213 "2022-05-19T18:14:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkpt20](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@gkpt20](https://discourse.psychopy.org/u/gkpt20)\
**Post date:** [May 19, 2022, 6:14pm UTC](https://discourse.psychopy.org/t/import-and-use-scikit-learn/29213/1 "2022-05-19T18:14:04Z")

</div>

**OS** : Win 10  
**PsychoPy version** : PsychoPy 2022.1.3  
**Standard Standalone?** : Yes  
**What are you trying to achieve?:** Import and use scikit-learn

**What did you try to make it work?:**  
I’ve tried a previous solution posted [here](https://discourse.psychopy.org/t/psychopy-does-not-recognize-scikit-learn/16450) and downloaded the cp38 .whl file and placed in **…/PsychoPy/Lib/site-packages/** , but I get the following error message: **No module named ‘sklearn’**

I’ve also tried downloading the tar.gz file and placing it in **…/PsychoPy/Lib/site-packages/** , but I get the following error message: **ImportError: cannot import name ‘linear\_models’ from ‘sklearn’ (unknown location)**

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![wen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wen/32/30795_2.png) [@wen](https://discourse.psychopy.org/u/wen)\
**Post date:** [May 21, 2022, 8:31am UTC](https://discourse.psychopy.org/t/import-and-use-scikit-learn/29213/2 "2022-05-21T08:31:43Z")

</div>

You might want to decompress. Here’s what happened to me

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/f/2ff7907f5d34bcb8e0e9c5d371c5089535471fbc.png)
