<?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 Is Python a nightmare when working with ArcGIS Pro? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-python-a-nightmare-when-working-with-arcgis-pro/m-p/151597#M11695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Python. Recently I had used Random Forest in ArcGIS Pro, but I wanted to use it directly using the Scikit-learn library. As I am new, so I started with &lt;A href="https://learn.arcgis.com/en/projects/predict-seagrass-habitats-with-machine-learning/lessons/perform-random-forest-classification.htm"&gt;Seagrass prediction tutorial&lt;/A&gt; to understand how the codes work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the built-in Python interface in ArcGIS Pro, it gave an error for the Scikit-learn library as it couldn’t find the package. I downloaded the Jupyter notebook and tried the initial libraries importing codes, &lt;A href="https://learn.arcgis.com/en/projects/predict-seagrass-habitats-with-machine-learning/lessons/perform-random-forest-classification.htm"&gt;given in the tutorial&lt;/A&gt;, but then the Arcpy package wasn’t found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spent the last three days only resolving errors but in vain. I have tried almost every solution that I could find on webpages or blogs, but nothing worked.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Am I making some basic mistake or Python is perhaps a nightmare when working with ArcGIS Pro? Any help to resolve this basic issue would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2019 04:50:24 GMT</pubDate>
    <dc:creator>Raza_Muhammad</dc:creator>
    <dc:date>2019-04-23T04:50:24Z</dc:date>
    <item>
      <title>Is Python a nightmare when working with ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/python-questions/is-python-a-nightmare-when-working-with-arcgis-pro/m-p/151597#M11695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to Python. Recently I had used Random Forest in ArcGIS Pro, but I wanted to use it directly using the Scikit-learn library. As I am new, so I started with &lt;A href="https://learn.arcgis.com/en/projects/predict-seagrass-habitats-with-machine-learning/lessons/perform-random-forest-classification.htm"&gt;Seagrass prediction tutorial&lt;/A&gt; to understand how the codes work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the built-in Python interface in ArcGIS Pro, it gave an error for the Scikit-learn library as it couldn’t find the package. I downloaded the Jupyter notebook and tried the initial libraries importing codes, &lt;A href="https://learn.arcgis.com/en/projects/predict-seagrass-habitats-with-machine-learning/lessons/perform-random-forest-classification.htm"&gt;given in the tutorial&lt;/A&gt;, but then the Arcpy package wasn’t found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have spent the last three days only resolving errors but in vain. I have tried almost every solution that I could find on webpages or blogs, but nothing worked.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Am I making some basic mistake or Python is perhaps a nightmare when working with ArcGIS Pro? Any help to resolve this basic issue would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 04:50:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-python-a-nightmare-when-working-with-arcgis-pro/m-p/151597#M11695</guid>
      <dc:creator>Raza_Muhammad</dc:creator>
      <dc:date>2019-04-23T04:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is Python a nightmare when working with ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/python-questions/is-python-a-nightmare-when-working-with-arcgis-pro/m-p/151598#M11696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't see mention of your cloned environment, but the inability to find scikit then arcpy suggests you haven't set up your environment as a clone via the instruction here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/get-started/what-is-conda.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/get-started/what-is-conda.htm"&gt;Python Package Manager—ArcPy Get Started | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or more generally&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2018/12/28/clone"&gt;/blogs/dan_patterson/2018/12/28/clone&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you intend to work with other packages make sure your environment is set up correctly.&amp;nbsp; Using 'conda' is usually the easiest if you are familiar with command line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 08:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-python-a-nightmare-when-working-with-arcgis-pro/m-p/151598#M11696</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-04-23T08:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is Python a nightmare when working with ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/python-questions/is-python-a-nightmare-when-working-with-arcgis-pro/m-p/151599#M11697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried it already. But every time the cloning process fails to create a new environment. And for the default clone, it's taking forever to complete the processing.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-centered j-img-original" src="https://community.esri.com/legacyfs/online/442738_Clone.JPG" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;IMG alt="" class="jive-image image-2 j-img-centered j-img-original" src="https://community.esri.com/legacyfs/online/442750_Clone-1.JPG" style="display: block; margin-left: auto; margin-right: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 19:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-python-a-nightmare-when-working-with-arcgis-pro/m-p/151599#M11697</guid>
      <dc:creator>Raza_Muhammad</dc:creator>
      <dc:date>2019-04-23T19:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is Python a nightmare when working with ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/python-questions/is-python-a-nightmare-when-working-with-arcgis-pro/m-p/151600#M11698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Raza, seems something is off with the state of your Pro install. Before trying an uninstall/reinstall, can you check what is returned when you (from the Python Command Prompt installed with ArcGIS Pro) run the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conda env list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may find that there are a lot of conda environments in that list from failed attempts, try removing all but arcgispro-py3 using the following (do this for each of the bad environments):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conda env remove --name &amp;lt;bad_env&amp;gt;&amp;nbsp;--all&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#restoring-an-environment" title="https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#restoring-an-environment"&gt;Managing environments — conda 4.8.2.post14+e9a50561 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then run conda proswap --name arcgispro-py3 and close the cmd window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open up pro and confirm that the current environment is set to arcgispro-py3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check %localappdata%\ESRI\conda\envs and make sure there's nothing in there except proenv.txt. Open proenv.text and make sure that the path is the path\to\your\arcgispro-py3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&amp;nbsp;open the registry editor (press windows key then type regedit and open "Registry Editor") and make sure that HKEY_CURRENT_USER\Software\ESRI\ArcGISPro\PythonCondaEnv is set to &lt;SPAN&gt;path\to\your\arcgispro-py3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go back to the Python backstage in ArcGIS Pro and try cloning again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 18:48:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-python-a-nightmare-when-working-with-arcgis-pro/m-p/151600#M11698</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2020-02-10T18:48:42Z</dc:date>
    </item>
  </channel>
</rss>

