<?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: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1645881#M74662</link>
    <description>&lt;P&gt;I have spend a week off and on trying to get VSCode to work as it used to. I found this gem from Copilot. Presumably other people know about this. I don't like the solutions proposed much.&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;ArcGIS Pro’s integration with VSCode is well-intentioned
 - but a bit heavy-handed. 
When you launch VSCode from within ArcGIS Pro, 
it tries to “help” by injecting its environment into your
global settings.json , but it sets:
the path to the env folder without python.exe on the end
—which is a folder, not an executable. 
VSCode then tries to run that as if it were python.exe, and boom: you get the  conda.exe error because it’s misinterpreting the path.&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 26 Aug 2025 22:48:54 GMT</pubDate>
    <dc:creator>KimOllivier</dc:creator>
    <dc:date>2025-08-26T22:48:54Z</dc:date>
    <item>
      <title>Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220697#M65818</link>
      <description>&lt;P&gt;I'm attempting to configure VS Code for ArcPy/ArcGIS Pro development, and things have been going ok so far, however I have run into an issue I am not sure how to resolve. I'm also curious to hear how other in the community have configured VS Code - I want to make sure I'm not way off base. Here is how I have configured VS Code:&lt;/P&gt;&lt;P&gt;I first cloned a Python environment from the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/what-is-conda.htm" target="_blank" rel="noopener"&gt;ArcGIS Pro Package Manager&lt;/A&gt;, and then set the location of the Python interpreter in VS Code to the "python.exe" in my cloned env (which for me, was in this folder: %LocalAppData%\ESRI\conda\envs\my-cloned-environment\python.exe).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="select_interpreter" style="width: 619px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53329i4EF935EC9B620BF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="select_interpreter" alt="select_interpreter" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And that was actually all I needed to do in order to run and debug a script. I am able to create a new Python debugging configuration in VS Code, set breakpoints step through the code, and get IntelliSense on all ArcPy modules &amp;amp; methods. However, there is still something I am not fully understanding, I think..&lt;/P&gt;&lt;P&gt;On VS Code Terminal launch, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="not_activated" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53330iC2A5180E268DA4A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="not_activated" alt="not_activated" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;That looks to me like the system PATH environment variable has not been configured for Conda, and Powershell does not recognize the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;conda&lt;/FONT&gt;&lt;/STRONG&gt; command. The Conda &lt;A href="https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#activating-an-environment" target="_blank" rel="noopener"&gt;docs&lt;/A&gt; actually recommend not modifying the PATH env var, but if I do, I can resolve the error above, and the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;conda&lt;/FONT&gt;&lt;/STRONG&gt; command is recognized.&lt;/P&gt;&lt;P&gt;However, that yields another error, "CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’.”&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="working1-1" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53331i2159DAF4ED088D32/image-size/large?v=v2&amp;amp;px=999" role="button" title="working1-1" alt="working1-1" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Looking at the error message, I see that it is saying to run command &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;conda init powershell&lt;/FONT&gt;&lt;/STRONG&gt;, however, this also yields an error an I am stuck at this point, unsure how to proceed. Running VS Code as admin did not resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="conda_2" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53333iDE84DE39099FDC3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="conda_2" alt="conda_2" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;To further compound my confusion, I came across this in the Esri docs saying "propy.bat" or "proenv.bat" should be used, but I don't know how I would integrate with VS Code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/using-conda-with-arcgis-pro.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/using-conda-with-arcgis-pro.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm curious to hear how other VS Code users have their local development environment configured, if you ran into any of these issues, how you resolved them, etc. Or am I just completely way off base in my methods and attempts to get VS Code configured lol??&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 13:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220697#M65818</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2022-10-11T13:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220811#M65822</link>
      <description>&lt;P&gt;I've gotten this to work like so:&lt;/P&gt;&lt;P&gt;Edit the VS Code settings.json file located here on Windows:&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;C:\Users\[YOUR_USER]\AppData\Roaming\Code\User\settings.json&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From there, update the line with "python.pythonPath" to&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;"python.pythonPath": "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\Scripts\\propy.bat"​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If for some reason that does not work, I have gotten it to work by pointing to the desired cloned environment directly like this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;"python.pythonPath": "C:\\Users\\[YOUR_USER]\\AppData\\Local\ESRI\\conda\\envs\\[NAME_OF_ENV]\\python.exe"​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 17:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220811#M65822</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2022-10-11T17:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220814#M65823</link>
      <description>&lt;P&gt;VSCODE understands Conda, but you have to tell it how to find conda.&lt;/P&gt;&lt;P&gt;Edit-&amp;gt;Preferences&lt;/P&gt;&lt;P&gt;Search for conda and you should see "Python: Conda Path"&lt;/P&gt;&lt;P&gt;If you still have the Python path set you should probably clear that.&lt;/P&gt;&lt;P&gt;I set the "Conda path" to C:\Program Files\ArcGIS\Pro\bin\Python\Scripts so that VSCode can find conda.&lt;/P&gt;&lt;P&gt;After setting the Conda path, I restart VSCode and I note in the task bar I can see "Discovering Python environments" flash by and then do F1-&amp;gt;Python: Select Interpreter.&lt;/P&gt;&lt;P&gt;Now it shows me the list of Conda environments, which on my computer looks like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianWilson7_0-1665504547969.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53352i57ADFF3676F5D5CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianWilson7_0-1665504547969.png" alt="BrianWilson7_0-1665504547969.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It found both my Esri environments and one(s) set up using "miniconda" which I have separately installed (you don't need miniconda) Note I installed "miniconda" because it works better for me from Bash shells so it finds that version of Python as well. (Having both the Esri conda and minconda installed works fine.)&lt;/P&gt;&lt;P&gt;Next I add the Scripts folder to my environment PATH settings,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrianWilson7_1-1665505306028.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53355i6BBAA3D1BC32B753/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrianWilson7_1-1665505306028.png" alt="BrianWilson7_1-1665505306028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I can restart VSCode, open a Powershell in a Terminal and run "conda info". Output looks like this on my computer:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;PS C:\Users\bwilson\Documents\source\arcgis_tools&amp;gt; conda info

     active environment : arcgispro-py3
    active env location : C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
       user config file : C:\Users\bwilson\.condarc
 populated config files : C:\Program Files\ArcGIS\Pro\bin\Python\.condarc
                          C:\Users\bwilson\.condarc
          conda version : 4.9.2
    conda-build version : not installed
         python version : 3.7.11.final.0
       virtual packages : __cuda=11.6=0
                          __win=0=0
                          __archspec=1=x86_64
       base environment : C:\Program Files\ArcGIS\Pro\bin\Python  (read only)
           channel URLs : https://conda.anaconda.org/esri/win-64
                          https://conda.anaconda.org/esri/noarch
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\bwilson\AppData\Local\ESRI\conda\pkgs
                          C:\Program Files\ArcGIS\Pro\bin\Python\pkgs
                          C:\Users\bwilson\.conda\pkgs
       envs directories : C:\Users\bwilson\AppData\Local\ESRI\conda\envs
                          C:\Program Files\ArcGIS\Pro\bin\Python\envs
                          C:\Users\bwilson\.conda\envs
               platform : win-64
             user-agent : conda/4.9.2 requests/2.25.1 CPython/3.7.11 Windows/10 Windows/10.0.22621
          administrator : False
             netrc file : None
           offline mode : False&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Almost there, when I try to do the normal activate for example "conda activate arcgispro29" it complains that I have not done "conda init" yet. If I do that, I restart VSCODE again, and find out it &lt;STRONG&gt;screws up my startup file&lt;/STRONG&gt;. To recover I delete the startup file it created, C:\Users\bwilson\Documents\WindowsPowerShell\profile.ps1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ignore the "conda init" thing by using the scripts that Esri installed, first run "proenv" then "activate".&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;PS C:\Users\bwilson\Documents\source\arcgis_tools&amp;gt; proenv

(arcgispro-py3) C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3&amp;gt;activate arcgispro29

(arcgispro29) C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3&amp;gt;conda info
(arcgispro29) C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3&amp;gt;conda info
     active environment : arcgispro29
    active env location : C:\Users\bwilson\.conda\envs\arcgispro29
(etc etc)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so that seems to get us where you need to be. You can use Python from the VSCode debugger (F5) and you can also activate an environment in a shell if you want; you need that to install additional packages and manage conda from the command line. Like, to create new environments.&lt;/P&gt;&lt;P&gt;I could also tell you how I set up miniconda so that it works in Bash but you did not ask that.... I avoid PowerShell as much as possible. Personal preference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 17:48:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220814#M65823</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-10-11T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220930#M65827</link>
      <description>&lt;P&gt;You da man, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/403473"&gt;@Brian_Wilson&lt;/a&gt; - thanks for replying, this worked for me! I had a very frustrating call with an Esri tech support representative for an hour trying to work thru this, but it ultimately ended it with a "we don't support this" answer and the ticket being closed &lt;span class="lia-unicode-emoji" title=":expressionless_face:"&gt;😑&lt;/span&gt; I probably wasn't communicating things effectively to support, but Pro/ArcPy/Conda and actually using them is something that is so under-documented that even Esri's staff can't answer questions about how this type of stuff is configured..&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 22:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220930#M65827</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2022-10-11T22:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220934#M65828</link>
      <description>&lt;P&gt;Hey you're welcome!&lt;/P&gt;&lt;P&gt;VSCode is the only Microsoft tool I can say I am actually fond of. (Well-- I did like MSC a lot but that was in 1985.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 23:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220934#M65828</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-10-11T23:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220938#M65829</link>
      <description>&lt;P&gt;Ha! Well, I'll give some credit where credit is due..not a lot of software companies have made a game that still works flawlessly 32 years later (on an operating system that didn't even exist in 1990!)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="sol1.png" style="width: 954px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53398i346E0860E7BFF615/image-size/large?v=v2&amp;amp;px=999" role="button" title="sol1.png" alt="sol1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;EM&gt;&amp;nbsp;MS Solitatire (1990) running on Pop!_OS 22.04 (2022)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 23:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1220938#M65829</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2022-10-11T23:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1221020#M65830</link>
      <description>&lt;P&gt;I know this isn't directly related to the question at hand, but since there are like-minded VSCode users in this thread perhaps it'll be allowed...&lt;/P&gt;&lt;P&gt;Is anyone successfully debugging in VS using attach to process w/ ArcGIS Pro? I know there is some documentation for Visual Studio, and i've seen some issues/discussions on GitHub related to it but I haven't managed to get it working.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 08:45:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1221020#M65830</guid>
      <dc:creator>I_AM_ERROR</dc:creator>
      <dc:date>2022-10-12T08:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1221074#M65832</link>
      <description>&lt;P&gt;Yes, that would be amazing, but everything I've read while investigating the same thing seems to indicate that it is not possible.. If I could have a workflow similar to Visual Studio ArcGIS Pro Add-in development with VS Code &amp;amp; Python by attaching the debugger to the running arcgispro.exe instance I would be so happy &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 13:40:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1221074#M65832</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2022-10-12T13:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1221278#M65837</link>
      <description>&lt;P&gt;Just submitted an idea if anyone else wants to dogpile on it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-ideas/debug-arcgis-pro-python-tools-in-vs-code-using/idi-p/1221277/jump-to/first-unread-message" target="_blank"&gt;Debug ArcGIS Pro python tools in VS Code using Att... - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 20:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1221278#M65837</guid>
      <dc:creator>I_AM_ERROR</dc:creator>
      <dc:date>2022-10-12T20:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1221318#M65839</link>
      <description>&lt;P&gt;If PyCharm can do this, there's got to be a way for VS Code to do this as well &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt; I would definitely love to see an official Esri "VS Code ArcGIS Pro Debugger extension"&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 22:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1221318#M65839</guid>
      <dc:creator>mfcallahan</dc:creator>
      <dc:date>2022-10-12T22:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1231756#M66063</link>
      <description>&lt;P&gt;Thank you for this, I've been struggling with this annoyance for a while. I feel like I am so close, but I am still getting the error the original poster had where the term conda is not recognized after following your directions. I was able to set the Conda path and add that path as a system environment variable. But I still cannot run conda init, I get the same error still. Any other ideas? I'm using the standard python installation from Pro 2.9 (no clones or anything).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1231756#M66063</guid>
      <dc:creator>cdevault_pickett</dc:creator>
      <dc:date>2022-11-15T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1232021#M66068</link>
      <description>&lt;P&gt;Does VSCODE see your conda environments? You should be able to see them if you do F1-&amp;gt;Python: Select Interpreter&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vscode.png" style="width: 616px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/56063i76417CD0775334FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="vscode.png" alt="vscode.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mine look different probably because I have a separate install of Miniconda too.&lt;/P&gt;&lt;P&gt;I don't have much use for PowerShell, I use bash most of the time. But I find Powershell can only find conda if I run the proenv script first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 22:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1232021#M66068</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-11-15T22:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1232261#M66075</link>
      <description>&lt;P&gt;Thanks for the reply, I think it has something to do with permissions or something on my work computer. I followed the steps exactly on my personal computer and it works as expected. If I figure it out I'll reply here.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 16:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1232261#M66075</guid>
      <dc:creator>cdevault_pickett</dc:creator>
      <dc:date>2022-11-16T16:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1232291#M66079</link>
      <description>&lt;P&gt;I have a hard time letting go of problems before they are solved. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Back when the ArcGIS Pro version of conda was very out of date, I started using Miniconda in parallel with the ArcGIS Conda. Since then I just find it works better for me to use both.&lt;/P&gt;&lt;P&gt;From the installer page: "On Windows, macOS, and Linux, it is best to install Miniconda for the local user, which does not require administrator permissions and is the most robust type of installation."&lt;/P&gt;&lt;P&gt;So for example right now I have the ArcGIS version, not on my path so typing entire path,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$ /c/Program\ Files/ArcGIS/Pro/bin/Python/Scripts/conda info

     active environment : C:\tools\miniconda3\envs\arcgis-example
    active env location : C:\tools\miniconda3\envs\arcgis-example
            shell level : 0
       user config file : C:\Users\bwilson\.condarc
 populated config files : C:\Program Files\ArcGIS\Pro\bin\Python\.condarc
                          C:\Users\bwilson\.condarc
          conda version : 4.9.2&lt;/LI-CODE&gt;&lt;P&gt;and the Miniconda version, on my shell path so I can type directly "conda"&lt;/P&gt;&lt;LI-CODE lang="c"&gt;conda activate arcgis-example
(arcgis-example)
bwilson@04-2288 MINGW64 /c/Users/bwilson/.conda
$ conda info

     active environment : arcgis-example
    active env location : C:\tools\miniconda3\envs\arcgis-example
            shell level : 1
       user config file : C:\Users\bwilson\.condarc
 populated config files : C:\Users\bwilson\.condarc
          conda version : 4.12.0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I set conda path in VSCODE to point at the miniconda version&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 17:18:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1232291#M66079</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-11-16T17:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1236380#M66194</link>
      <description>&lt;P&gt;After following Brian's answer above I was also able to add the following to my settings.json file and VS Code finally starts up my Pro env in the terminal by default without the conda init warning. I'm using command prompt as my default shell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"python.terminal.activateEnvironment": false
"terminal.integrated.profiles.windows": {

	"PowerShell": {
		"source": "PowerShell",
		"icon": "terminal-powershell"
	},
	"Command Prompt": {
		"path": [
			"${env:windir}\\Sysnative\\cmd.exe",
			"${env:windir}\\System32\\cmd.exe"
		],
		"args": [

		"/k", 
		"C:/Program Files/ArcGIS/Pro\\bin/Python/Scripts/proenv.bat"],
		"icon": "terminal-cmd"
	},
	"Git Bash": {
		"source": "Git Bash"
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonJordan00_0-1669820185939.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57224i800B219606839770/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonJordan00_0-1669820185939.png" alt="JasonJordan00_0-1669820185939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1236380#M66194</guid>
      <dc:creator>JasonJordan00</dc:creator>
      <dc:date>2022-11-30T14:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1248208#M66553</link>
      <description>&lt;P&gt;I am also having trouble executing - I don't even seem to have the Python: Conda Path option when selecting settings. Should I be setting the interpreter to conda.exe rather than python.exe packaged with Pro? I also have no other environments available in&amp;nbsp;C:\Users\{User}\AppData\Local\ESRI\conda\envs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feeling like a bit of a numbskull here trying to get going, especially when their &lt;A href="https://resources.esri.ca/getting-technical/how-to-configure-visual-studio-code-with-arcgis-pro-s-python-environment" target="_self"&gt;documentation&lt;/A&gt; makes it seem like it should be so simple.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 20:04:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1248208#M66553</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2023-01-13T20:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1248294#M66567</link>
      <description>&lt;P&gt;There are tabs on the settings page, one for "User" and one for "Workspace". When I switch to "Workspace", the "Python: Conda Path" setting disappears. Maybe you clicked on Workspace? I guess they don't want you to have a conda set different in a workspace than in your global (user) settings so they don't let us do that.&lt;/P&gt;&lt;P&gt;Setting the python path to conda.exe wont work. Don't do that.&lt;/P&gt;&lt;P&gt;If you have conda working, like at command line, you can see where your environments are stored. They can be in different places. (Anyplace, really). Each environment is a folder with Python and packages and other stuff stored in it.&lt;/P&gt;&lt;P&gt;So it's possible for C:\Users\{User}\AppData\Local\ESRI\conda\envs to be EMPTY and you still have envs... this is what my computer shows in&amp;nbsp; "envs directories" right now when I do "conda info"&lt;/P&gt;&lt;LI-CODE lang="c"&gt; envs directories : C:\Program Files\ArcGIS\Pro\bin\Python\envs
                          C:\Users\bwilson\AppData\Local\ESRI\conda\envs
                          C:\Users\bwilson\Miniconda3\envs
                          C:\Users\bwilson\.conda\envs
                          C:\Users\bwilson\AppData\Local\conda\conda\envs&lt;/LI-CODE&gt;&lt;P&gt;It's including some directories that I added by editing my .condarc config file. My .condarc has this in it. I think the other folders are added because of where I have my conda.exe installed (C:\Users\bwilson\Miniconda3) and the .conda folder my home directory (C:\Users\bwilson\.conda)&lt;/P&gt;&lt;P&gt;envs_dirs:&lt;BR /&gt;- C:/Program Files/ArcGIS/Pro/bin/Python/envs&lt;BR /&gt;- C:/Users/bwilson/AppData/Local/ESRI/conda/envs&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 00:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1248294#M66567</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2023-01-14T00:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1248707#M66580</link>
      <description>&lt;P&gt;Thank you for the reply. Very helpful. I am not particularly savvy but was able to get mine working without&amp;nbsp;&lt;EM&gt;really&lt;/EM&gt; understanding what I did. The first post in &lt;A href="https://www.reddit.com/r/learnpython/comments/fayicq/vscode_the_term_conda_is_not_recognized_as_the/" target="_self"&gt;this link&lt;/A&gt;, and the page&amp;nbsp;&lt;EM&gt;it&lt;/EM&gt; links to, were helpful.&lt;/P&gt;&lt;P&gt;I typed this below into the command prompt....&lt;/P&gt;&lt;LI-CODE lang="c"&gt;conda init powershell&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...this succeeded in letting me actually run code, though it would still show an error at the initialization of any script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I made the settings change (in VS code, Terminal: Select Default Profile), setting the terminal to command prompt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything runs smoothly now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 15:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1248707#M66580</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2023-01-17T15:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1259602#M66891</link>
      <description>&lt;P&gt;Hey there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed your instructions and now I am getting these messages. Any clues for me?&lt;/P&gt;&lt;P&gt;Windows PowerShell&lt;BR /&gt;Copyright (C) 2016 Microsoft Corporation. All rights reserved.&lt;/P&gt;&lt;P&gt;PS C:\Users\AROBINSO&amp;gt; conda activate arcgispro-py3&lt;/P&gt;&lt;P&gt;CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.&lt;BR /&gt;If using 'conda activate' from a batch script, change your&lt;BR /&gt;invocation to 'CALL conda.bat activate'.&lt;/P&gt;&lt;P&gt;To initialize your shell, run&lt;/P&gt;&lt;P&gt;$ conda init &amp;lt;SHELL_NAME&amp;gt;&lt;/P&gt;&lt;P&gt;Currently supported shells are:&lt;BR /&gt;- bash&lt;BR /&gt;- cmd.exe&lt;BR /&gt;- fish&lt;BR /&gt;- tcsh&lt;BR /&gt;- xonsh&lt;BR /&gt;- zsh&lt;BR /&gt;- powershell&lt;/P&gt;&lt;P&gt;See 'conda init --help' for more information and options.&lt;/P&gt;&lt;P&gt;IMPORTANT: You may need to close and restart your shell after running 'conda init'.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 23:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1259602#M66891</guid>
      <dc:creator>AlexRobinson13</dc:creator>
      <dc:date>2023-02-17T23:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to configure ArcGIS Pro/ArcPy + VS Code, but can't activate conda environment - where am I going wrong?</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1271536#M67216</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/403473"&gt;@Brian_Wilson&lt;/a&gt;&amp;nbsp;Thanks for the help back in November but I'm just now circling back to this. I've got things to the point where I receive a similar message that&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/608047"&gt;@AlexRobinson13&lt;/a&gt;&amp;nbsp;is experiencing.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;PS C:\Users\cdevault&amp;gt; activate
PS C:\Users\cdevault&amp;gt; conda activate "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3"

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If using 'conda activate' from a batch script, change your

To initialize your shell, run

    $ conda init &amp;lt;SHELL_NAME&amp;gt;

Currently supported shells are:
  - bash
  - cmd.exe
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.


PS C:\Users\cdevault&amp;gt; &amp;amp; "C:/Program Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3/python.exe" c:/Users/cdevault/Desktop/Print.py
test
PS C:\Users\cdevault&amp;gt; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 20:18:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-configure-arcgis-pro-arcpy-vs-code-but/m-p/1271536#M67216</guid>
      <dc:creator>cdevault_pickett</dc:creator>
      <dc:date>2023-03-24T20:18:02Z</dc:date>
    </item>
  </channel>
</rss>

