<?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: Do I need to create a new conda env every time Prod is updated? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270210#M67910</link>
    <description>&lt;P&gt;I was afraid of that, so you are probably already done cloning arcgispro-py3 and adding your packages already, but for future reference, you can create one using a *.yml file&lt;/P&gt;&lt;P&gt;&lt;A href="https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file" target="_blank"&gt;Managing environments — conda 23.3.0.post6+9929f60ed documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;clones are still pinned so you will have to deal with that in 2.9 onward&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 02:49:19 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2023-03-22T02:49:19Z</dc:date>
    <item>
      <title>Do I need to create a new conda env every time Prod is updated?</title>
      <link>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270176#M67906</link>
      <description>&lt;P&gt;Hello. I created a python script which uses the ArcGIS API for Python. I created a new conda env for the script because i also use several non-esri libraries. The conda environment was cloned from a ArcGIS Pro 2.8 install. Our IT staff recently updated all our machines to ArcGIS 2.9.&amp;nbsp; Now my script no longer runs. I get the following error message indicating an ArcGIS Pro version mismatch:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trippetoe_0-1679440979399.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65891i5B832BC8D8199C02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Trippetoe_0-1679440979399.png" alt="Trippetoe_0-1679440979399.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I activated the conda env before trying to execute my script, but there still seems to be a dependency on the pro-py3 environment.&lt;/P&gt;&lt;P&gt;Do i need to clone\create a new conda env based on the new version of ArcGIS Pro installed? I thought the advantage of using conda was to create independent environments that don't have these types of version dependencies.&lt;/P&gt;&lt;P&gt;Is there something that i'm not doing quite right here?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 23:28:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270176#M67906</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2023-03-21T23:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to create a new conda env every time Prod is updated?</title>
      <link>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270182#M67907</link>
      <description>&lt;P&gt;did you try updating the environment?&lt;/P&gt;&lt;P&gt;Don't know about 2.9, but in 3.x&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/upgrade-an-environment.htm" target="_blank"&gt;Upgrade an environment—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;check your version of the help topic&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 23:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270182#M67907</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-03-21T23:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to create a new conda env every time Prod is updated?</title>
      <link>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270187#M67908</link>
      <description>&lt;P&gt;Nope - not yet anyway. I'll do that right away. Thank you for the link.&lt;/P&gt;&lt;P&gt;Maybe i'm quibbling here (plus don't fully understand conda environments), but isnt the purpose of a conda environments to remove dependencies on other 'environments'?&amp;nbsp; Anyway, i'll try the update approach and let you know how it goes.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 23:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270187#M67908</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2023-03-21T23:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to create a new conda env every time Prod is updated?</title>
      <link>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270190#M67909</link>
      <description>&lt;P&gt;Turns out that updating the environment with a magic desktop command is not possible in 2.9, and the&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;conda proup&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;command doesn't exist yet.&amp;nbsp; Any other ideas i can try other than just rebuilding the environment from scratch?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Trippetoe_0-1679443751061.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/65896i7B6406316FFCDAB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Trippetoe_0-1679443751061.png" alt="Trippetoe_0-1679443751061.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 00:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270190#M67909</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2023-03-22T00:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to create a new conda env every time Prod is updated?</title>
      <link>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270210#M67910</link>
      <description>&lt;P&gt;I was afraid of that, so you are probably already done cloning arcgispro-py3 and adding your packages already, but for future reference, you can create one using a *.yml file&lt;/P&gt;&lt;P&gt;&lt;A href="https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file" target="_blank"&gt;Managing environments — conda 23.3.0.post6+9929f60ed documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;clones are still pinned so you will have to deal with that in 2.9 onward&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 02:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270210#M67910</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-03-22T02:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to create a new conda env every time Prod is updated?</title>
      <link>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270646#M67911</link>
      <description>&lt;P&gt;Thank you for sharing your knowledge with me. I really appreciate it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yah, it turned out to be more efficient to recreate the conda environment. Strangely, i had documented the process pretty well the last time, so it wasn't so painful. who knew documentation could be so helpful &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 21:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270646#M67911</guid>
      <dc:creator>Trippetoe</dc:creator>
      <dc:date>2023-03-22T21:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to create a new conda env every time Prod is updated?</title>
      <link>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270662#M67912</link>
      <description>&lt;P&gt;It becomes more important with age... as well as changing technology&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 22:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1270662#M67912</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-03-22T22:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need to create a new conda env every time Prod is updated?</title>
      <link>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1297784#M67919</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/339785"&gt;@Trippetoe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Maybe i'm quibbling here (plus don't fully understand conda environments), but isnt the purpose of a conda environments to remove dependencies on other 'environments'?&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think the error message is a little misleading. But regardless, the version of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;arcpy&lt;/FONT&gt; in your cloned&amp;nbsp; environment needs to match the version of ArcGIS Pro to ensure binary compatibility, this is a common issue with other python packages that use C/C++ extension&amp;nbsp;libraries.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your script that uses &lt;FONT face="courier new,courier"&gt;arcgis&lt;/FONT&gt; API doesn't use arcpy (and doesn't require any &lt;A href="https://gis.stackexchange.com/a/338724" target="_blank" rel="noopener"&gt;&lt;FONT face="courier new,courier"&gt;arcpy&lt;/FONT&gt; functionality&lt;/A&gt;), you can create a stand-alone conda env with &lt;FONT face="courier new,courier"&gt;arcgis&lt;/FONT&gt; that doesn't include &lt;FONT face="courier new,courier"&gt;arcpy&lt;/FONT&gt; and thus doesn't depend on a specific version of ArcGS Pro.&lt;/P&gt;&lt;P&gt;E.g. from the command line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;conda create -n arcgisapi -c esri arcgis&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/anaconda" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/anaconda&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 01:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/do-i-need-to-create-a-new-conda-env-every-time/m-p/1297784#M67919</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2023-06-10T01:16:15Z</dc:date>
    </item>
  </channel>
</rss>

