<?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 conda environment failing? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/conda-environment-failing/m-p/1189541#M7544</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am teaching a class on python through arcpro. I understand that I am supposed to clone arc's environment through arcpro, but from a teaching perspective this is terrible since they wont understand how to use conda outside of arc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had previously been able to create a new working environment using:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;conda create -n spatial arcpy arcgis -c esri&lt;/LI-CODE&gt;&lt;P&gt;But now when I activate and go to import arcpy, I get a zanny error and the suggestion to do the very thing I would like to avoid.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;The version of the binaries in the active Python environment do
not match the version of the binaries in the ArcGIS application.

Active environment version : 3.0
arcgispro-py3 environment version : 2.9

To update the existing environment see the conda proup subcommand
&amp;gt; conda proup --help

To manually create a new environment for use with the current ArcGIS application:
1. Generate a list of additional packages installed in your current environment,
with the conda command:
&amp;gt; conda env export &amp;gt; env.yaml
2. (Optional) If you have additional dependencies installed through pip,
find those with pip freeze:
&amp;gt; pip freeze &amp;gt; requirements.txt
3. Create a new environment by cloning arcgispro-py3, and activate it:
&amp;gt; conda create --clone arcgispro-py3 --name my-env --pinned
&amp;gt; activate my-env
4. Add back missing conda packages from your current environment:
&amp;gt; conda env update -n my-env -f env.yaml
5. (Optional) Add back missing packages from pip:
&amp;gt; pip install -r requirements.txt
6. (Optional) Make it the default for the ArcGIS application and the
"Python Command Prompt":
&amp;gt; proswap my-env

Traceback (most recent call last):
File "c:\Users\mmann\Dropbox\6308 v2\IGSUP-New\IGSUP_data\0_Running_scripts\Solution\BufferCorvallisSchools.py", line 1, in &amp;lt;module&amp;gt;
import arcpy
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 88, in &amp;lt;module&amp;gt;
from arcpy.geoprocessing import gp
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in &amp;lt;module&amp;gt;
from ._base import *
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in &amp;lt;module&amp;gt;
import arcgisscripting
File "C:\Users\mmann\Anaconda3\envs\spatial\lib\site-packages\arcgisscripting\__init__.py", line 115, in &amp;lt;module&amp;gt;
raise ImportError("version mis-match") from None
ImportError: version mis-match&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Is the conda-feedstock broken?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 17:57:13 GMT</pubDate>
    <dc:creator>mmann1123</dc:creator>
    <dc:date>2022-07-05T17:57:13Z</dc:date>
    <item>
      <title>conda environment failing?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/conda-environment-failing/m-p/1189541#M7544</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am teaching a class on python through arcpro. I understand that I am supposed to clone arc's environment through arcpro, but from a teaching perspective this is terrible since they wont understand how to use conda outside of arc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had previously been able to create a new working environment using:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;conda create -n spatial arcpy arcgis -c esri&lt;/LI-CODE&gt;&lt;P&gt;But now when I activate and go to import arcpy, I get a zanny error and the suggestion to do the very thing I would like to avoid.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;The version of the binaries in the active Python environment do
not match the version of the binaries in the ArcGIS application.

Active environment version : 3.0
arcgispro-py3 environment version : 2.9

To update the existing environment see the conda proup subcommand
&amp;gt; conda proup --help

To manually create a new environment for use with the current ArcGIS application:
1. Generate a list of additional packages installed in your current environment,
with the conda command:
&amp;gt; conda env export &amp;gt; env.yaml
2. (Optional) If you have additional dependencies installed through pip,
find those with pip freeze:
&amp;gt; pip freeze &amp;gt; requirements.txt
3. Create a new environment by cloning arcgispro-py3, and activate it:
&amp;gt; conda create --clone arcgispro-py3 --name my-env --pinned
&amp;gt; activate my-env
4. Add back missing conda packages from your current environment:
&amp;gt; conda env update -n my-env -f env.yaml
5. (Optional) Add back missing packages from pip:
&amp;gt; pip install -r requirements.txt
6. (Optional) Make it the default for the ArcGIS application and the
"Python Command Prompt":
&amp;gt; proswap my-env

Traceback (most recent call last):
File "c:\Users\mmann\Dropbox\6308 v2\IGSUP-New\IGSUP_data\0_Running_scripts\Solution\BufferCorvallisSchools.py", line 1, in &amp;lt;module&amp;gt;
import arcpy
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 88, in &amp;lt;module&amp;gt;
from arcpy.geoprocessing import gp
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in &amp;lt;module&amp;gt;
from ._base import *
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in &amp;lt;module&amp;gt;
import arcgisscripting
File "C:\Users\mmann\Anaconda3\envs\spatial\lib\site-packages\arcgisscripting\__init__.py", line 115, in &amp;lt;module&amp;gt;
raise ImportError("version mis-match") from None
ImportError: version mis-match&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Is the conda-feedstock broken?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 17:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/conda-environment-failing/m-p/1189541#M7544</guid>
      <dc:creator>mmann1123</dc:creator>
      <dc:date>2022-07-05T17:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: conda environment failing?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/conda-environment-failing/m-p/1189576#M7545</link>
      <description>&lt;P&gt;Resolved.&amp;nbsp; Seems like the new version of arcpy is only working with arcpro 3.0.0 and is not backwards compatable. After updating arcpro, the new install of arcpy worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 18:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/conda-environment-failing/m-p/1189576#M7545</guid>
      <dc:creator>mmann1123</dc:creator>
      <dc:date>2022-07-05T18:51:26Z</dc:date>
    </item>
  </channel>
</rss>

