<?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>topic Re: Error when running Python script, no sklearn or scikit-learn in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-python-script-no-sklearn-or/m-p/1116970#M47849</link>
    <description>&lt;P&gt;You'll need to do a couple of things to get&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, you will need to create a&amp;nbsp;cloned environment:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/get-started/work-with-python-environments.htm" target="_blank"&gt;Work with Python environments—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then, using this&amp;nbsp;cloned environment you can go into the Python manager in ArcGIS Pro and add any of the listed packages like scikit-learn&amp;nbsp;or&amp;nbsp;scikit-learn.ensemble(or add ones that are not listed)&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 18:14:29 GMT</pubDate>
    <dc:creator>RobertHeusser</dc:creator>
    <dc:date>2021-11-15T18:14:29Z</dc:date>
    <item>
      <title>Error when running Python script, no sklearn or scikit-learn</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-python-script-no-sklearn-or/m-p/113476#M4633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on the Predicting Seagrass Tutorial and at the Python section, I keep getting the error that&amp;nbsp; no module exsists for sklearn and for scikit-learn (that I downloaded and replaced for sklearn after the first error).&amp;nbsp; Can someone help?&amp;nbsp; I can't find sklearn to download in the modules after cloning...here is the error.&amp;nbsp; I did replace sklearn with scikit-learn and tried different sytax as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from scikit-learn.ensemble import RandomForestClassifier&lt;BR /&gt;import numpy as NUM&lt;BR /&gt;import arcpy as ARCPY&lt;BR /&gt;import arcpy.da as DA&lt;BR /&gt;import pandas as PD&lt;BR /&gt;import seaborn as SEA&lt;BR /&gt;import matplotlib.pyplot as PLOT&lt;BR /&gt;import arcgisscripting as ARC&lt;BR /&gt;import SSUtilities as UTILS&lt;BR /&gt;import os as OS&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 1&lt;BR /&gt; from scikit-learn.ensemble import RandomForestClassifier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 16:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-python-script-no-sklearn-or/m-p/113476#M4633</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-06-01T16:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running Python script, no sklearn or scikit-learn</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-python-script-no-sklearn-or/m-p/1116970#M47849</link>
      <description>&lt;P&gt;You'll need to do a couple of things to get&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, you will need to create a&amp;nbsp;cloned environment:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/get-started/work-with-python-environments.htm" target="_blank"&gt;Work with Python environments—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then, using this&amp;nbsp;cloned environment you can go into the Python manager in ArcGIS Pro and add any of the listed packages like scikit-learn&amp;nbsp;or&amp;nbsp;scikit-learn.ensemble(or add ones that are not listed)&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 18:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-python-script-no-sklearn-or/m-p/1116970#M47849</guid>
      <dc:creator>RobertHeusser</dc:creator>
      <dc:date>2021-11-15T18:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running Python script, no sklearn or scikit-learn</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-python-script-no-sklearn-or/m-p/1619098#M96141</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454322"&gt;@RobertHeusser&lt;/a&gt;&amp;nbsp;I seem to be having the same issue identified in this older thread, failing to add the sklearn package to the active environment in ArcPro. I cloned the environment in ArcGIS Pro. Using the Package Manager, I do not see sklearn as an available package to add. How do I get the Package Manager in ArcGIS Pro to list sklearn as an additional package available for installation?&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 20:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-when-running-python-script-no-sklearn-or/m-p/1619098#M96141</guid>
      <dc:creator>KavianKoleini</dc:creator>
      <dc:date>2025-05-28T20:47:29Z</dc:date>
    </item>
  </channel>
</rss>

