<?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: Cannot import python package in Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/cannot-import-python-package-in-pro/m-p/1375358#M78015</link>
    <description>&lt;P&gt;Thanks for replying Brian. I was out of office for a couple of days.&lt;/P&gt;&lt;P&gt;I tried to install and run Spyder without success first following &lt;A href="https://community.esri.com/t5/arcgis-pro-blog/installing-spyder-ide-for-arcpro/ba-p/901923#:~:text=and%20restart%20ArcPro.-,In%20ArcPro%20click%20on%20Project%20tab%20then%20Python%20in%20the,the%20panel%20to%20the%20right" target="_self"&gt;these instructions&lt;/A&gt;. I got the 'version not available' error. Then I tried the not-recommended 'pip install spyder' (&lt;A href="https://community.esri.com/t5/python-questions/spyder-wont-install-after-arcgis-pro-updated-to-3/td-p/1268865" target="_self"&gt;here&lt;/A&gt; , &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/spyder-install/td-p/1254200" target="_self"&gt;here&lt;/A&gt;&amp;nbsp; and &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/installing-spyder-in-arcgis-pro-2-9/m-p/1262766#M66052" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;) .&lt;/P&gt;&lt;P&gt;Pip install worked with warnings&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EfiKonstantinidou_0-1706533396249.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93020iE74CDCF055D983EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EfiKonstantinidou_0-1706533396249.png" alt="EfiKonstantinidou_0-1706533396249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;that some required packages are not installed or there's version conflicts.&lt;/P&gt;&lt;P&gt;Still, Spyder appeared in the folder but doesn't launch properly (disappears and a few seconds).&lt;/P&gt;&lt;P&gt;I created a new (cloned) environment and did 'pip install spyder' again getting the same warnings as before (please see attached .txt )&lt;/P&gt;&lt;P&gt;I really don't know what else to do to make this run.&lt;/P&gt;&lt;P&gt;Moreover, in my prginal post I mention that I cannot import a package (opencv) in the Pro Python window as well. Isn't this a separate issue from using an IDE with Pro? I would expect that opencv can be imported using the python window even if no external IDE is used.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Efi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2024 13:18:01 GMT</pubDate>
    <dc:creator>EfiKonstantinidou</dc:creator>
    <dc:date>2024-01-29T13:18:01Z</dc:date>
    <item>
      <title>Cannot import python package in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cannot-import-python-package-in-pro/m-p/1373855#M77837</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I cannot import python package &lt;STRONG&gt;opencv&lt;/STRONG&gt; for use in ArcgIS Pro 3.2&lt;/P&gt;&lt;P&gt;I'm working in a cloned environment that is activated and package &lt;STRONG&gt;opencv&lt;/STRONG&gt; seems to be pre-installed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pavkage_manager.jpg" style="width: 771px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92618i44CB2EAB6AD984F2/image-dimensions/771x163?v=v2" width="771" height="163" role="button" title="pavkage_manager.jpg" alt="pavkage_manager.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When importing opencv inPro&amp;nbsp; or Idle the package is not found.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pro_python.jpg" style="width: 351px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92620iE778A71383D6E368/image-size/large?v=v2&amp;amp;px=999" role="button" title="pro_python.jpg" alt="pro_python.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="idle_python.jpg" style="width: 657px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92621i6FFB31CCF3D7B7FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="idle_python.jpg" alt="idle_python.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Package opencv also shows up when doing a conda list&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="conda_list.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92622i153B8780B90418BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="conda_list.jpg" alt="conda_list.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="conda_list_2.jpg" style="width: 700px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92623iB6CBD61ECB0166E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="conda_list_2.jpg" alt="conda_list_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would expect that &lt;STRONG&gt;opencv&lt;/STRONG&gt; is accessible for import since it is ocntained in the &lt;EM&gt;conda list&lt;/EM&gt; output.&lt;/P&gt;&lt;P&gt;I'm a novice, does anyone have an idea what I'm missing here?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Efi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ps. I also did an additional opencv installation with&amp;nbsp;&lt;EM&gt;conda install -c conda-forge opencv &lt;/EM&gt;, which I deem was redundant. The problem with package import persisted&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 13:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cannot-import-python-package-in-pro/m-p/1373855#M77837</guid>
      <dc:creator>EfiKonstantinidou</dc:creator>
      <dc:date>2024-01-24T13:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import python package in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cannot-import-python-package-in-pro/m-p/1373967#M77852</link>
      <description>&lt;P&gt;You are running Idle with whatever Python environment it finds, not the Conda environment. Probably the first Python it finds in your PATH.&lt;/P&gt;&lt;P&gt;Try running this in your Python&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os; os.environ["CONDA_PREFIX"]&lt;/LI-CODE&gt;&lt;P&gt;If it says KeyError: 'CONDA_PREFIX' then there is no conda environment loaded.&amp;nbsp; On my computer for example I activated the arcgispro-py3 environment and it says&lt;/P&gt;&lt;P&gt;'C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3'&lt;/P&gt;&lt;P&gt;Don't use Idle anymore. You should switch to Visual Studio Code or Spyder. I am sure there is a way to make it work properly with Idle but it's not worth the effort, get a better editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 17:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cannot-import-python-package-in-pro/m-p/1373967#M77852</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2024-01-24T17:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import python package in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cannot-import-python-package-in-pro/m-p/1373969#M77853</link>
      <description>&lt;P&gt;Oh yeah also the startup line of the Python is a dead giveaway. It should say something like&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Python 3.9.18 [MSC v.1931 64 bit (AMD64)] :: Anaconda, Inc. on win32&lt;/LI-CODE&gt;&lt;P&gt;Look for the word "Anaconda".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 17:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cannot-import-python-package-in-pro/m-p/1373969#M77853</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2024-01-24T17:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import python package in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cannot-import-python-package-in-pro/m-p/1375358#M78015</link>
      <description>&lt;P&gt;Thanks for replying Brian. I was out of office for a couple of days.&lt;/P&gt;&lt;P&gt;I tried to install and run Spyder without success first following &lt;A href="https://community.esri.com/t5/arcgis-pro-blog/installing-spyder-ide-for-arcpro/ba-p/901923#:~:text=and%20restart%20ArcPro.-,In%20ArcPro%20click%20on%20Project%20tab%20then%20Python%20in%20the,the%20panel%20to%20the%20right" target="_self"&gt;these instructions&lt;/A&gt;. I got the 'version not available' error. Then I tried the not-recommended 'pip install spyder' (&lt;A href="https://community.esri.com/t5/python-questions/spyder-wont-install-after-arcgis-pro-updated-to-3/td-p/1268865" target="_self"&gt;here&lt;/A&gt; , &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/spyder-install/td-p/1254200" target="_self"&gt;here&lt;/A&gt;&amp;nbsp; and &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/installing-spyder-in-arcgis-pro-2-9/m-p/1262766#M66052" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;) .&lt;/P&gt;&lt;P&gt;Pip install worked with warnings&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EfiKonstantinidou_0-1706533396249.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93020iE74CDCF055D983EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EfiKonstantinidou_0-1706533396249.png" alt="EfiKonstantinidou_0-1706533396249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;that some required packages are not installed or there's version conflicts.&lt;/P&gt;&lt;P&gt;Still, Spyder appeared in the folder but doesn't launch properly (disappears and a few seconds).&lt;/P&gt;&lt;P&gt;I created a new (cloned) environment and did 'pip install spyder' again getting the same warnings as before (please see attached .txt )&lt;/P&gt;&lt;P&gt;I really don't know what else to do to make this run.&lt;/P&gt;&lt;P&gt;Moreover, in my prginal post I mention that I cannot import a package (opencv) in the Pro Python window as well. Isn't this a separate issue from using an IDE with Pro? I would expect that opencv can be imported using the python window even if no external IDE is used.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Efi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 13:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cannot-import-python-package-in-pro/m-p/1375358#M78015</guid>
      <dc:creator>EfiKonstantinidou</dc:creator>
      <dc:date>2024-01-29T13:18:01Z</dc:date>
    </item>
  </channel>
</rss>

