<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question CDSW - ModuleNotFoundError: No module named 'sklearn' in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/CDSW-ModuleNotFoundError-No-module-named-sklearn/m-p/298912#M219432</link>
    <description>&lt;P&gt;hi&lt;BR /&gt;a newbie question...&lt;BR /&gt;i'm trying to follow the guide here (using CDSW 1.7) :&amp;nbsp;&lt;A href="https://www.cloudera.com/tutorials/building-a-linear-regression-model-for-predicting-house-prices.html" target="_blank" rel="noopener"&gt;https://www.cloudera.com/tutorials/building-a-linear-regression-model-for-predicting-house-prices.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;when i add the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.datasets import load_boston
from sklearn.metrics import mean_squared_error, r2_score&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i get the &lt;FONT color="#FF0000"&gt;ModuleNotFoundError&lt;/FONT&gt; :&lt;/P&gt;&lt;PRE&gt;ModuleNotFoundError: No module named 'sklearn'&lt;BR /&gt;ModuleNotFoundError             Traceback (most recent call last)
in engine
----&amp;gt; 1 from sklearn.model_selection import train_test_split

ModuleNotFoundError: No module named 'sklearn'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;how can i solve this?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 13:36:54 GMT</pubDate>
    <dc:creator>yari</dc:creator>
    <dc:date>2020-06-30T13:36:54Z</dc:date>
  </channel>
</rss>

