<?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>idea Conda Powershell in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idi-p/1265520</link>
    <description>&lt;P&gt;Vanilla Anaconda supports starting a Python environment in a Powershell window by running a script called conda-hook.ps1.&amp;nbsp; Since ArcGIS Pro conda runs different scripts to set up its environment for ArcGIS, the Powershell Shortcut module does not install properly (nor does Miniconda Powershell Shortcut), so it looks like Esri would have to create their own version of Powershell Shortcut in the "esri" channel.&lt;/P&gt;&lt;P&gt;Powershell is becoming much more popular than the old Command Prompt window, and I started writing scripts to automate GIS tasks using Python with 10.x, but I can't use it with Pro 3.x yet until there is a script that does what proenv.bat and conda-hook.ps1 does in a Powershell.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 16:39:37 GMT</pubDate>
    <dc:creator>ZacharyStauber1</dc:creator>
    <dc:date>2023-03-08T16:39:37Z</dc:date>
    <item>
      <title>Conda Powershell</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idi-p/1265520</link>
      <description>&lt;P&gt;Vanilla Anaconda supports starting a Python environment in a Powershell window by running a script called conda-hook.ps1.&amp;nbsp; Since ArcGIS Pro conda runs different scripts to set up its environment for ArcGIS, the Powershell Shortcut module does not install properly (nor does Miniconda Powershell Shortcut), so it looks like Esri would have to create their own version of Powershell Shortcut in the "esri" channel.&lt;/P&gt;&lt;P&gt;Powershell is becoming much more popular than the old Command Prompt window, and I started writing scripts to automate GIS tasks using Python with 10.x, but I can't use it with Pro 3.x yet until there is a script that does what proenv.bat and conda-hook.ps1 does in a Powershell.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 16:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idi-p/1265520</guid>
      <dc:creator>ZacharyStauber1</dc:creator>
      <dc:date>2023-03-08T16:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conda Powershell</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idc-p/1265611#M23613</link>
      <description>&lt;P&gt;are you referring to the files in this folder?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;C:\... install folder ...\bin\Python\shell\condabin&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Mar 2023 18:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idc-p/1265611#M23613</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-03-08T18:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Conda Powershell</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idc-p/1265705#M23618</link>
      <description>&lt;P&gt;Well, if I create a Conda environment with Anaconda or Miniconda, and open the shortcut from start, I get:&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;(base) PS C:\Users\zachary.stauber&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Ready for business.&lt;/P&gt;&lt;P&gt;But if I install the Powershell Shortcut module from ArcGIS Pro for an environment created from within Pro I get&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;&amp;amp; : The term 'C:\Users\ZACHAR~1.STA\AppData\Local\Temp\ArcGISProTemp17332\_MEI194722\shell\condabin\conda-hook.ps1' is
not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:3
+ &amp;amp; 'C:\Users\ZACHAR~1.STA\AppData\Local\Temp\ArcGISProTemp17332\_MEI19 ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\ZACHAR...\conda-hook.ps1:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:108
+ ... roTemp17332\_MEI194722\shell\condabin\conda-hook.ps1' ; conda activat ...
+                                                             ~~~~~
    + CategoryInfo          : ObjectNotFound: (conda:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException&lt;/LI-CODE&gt;&lt;P&gt;And indeed there is a &lt;STRONG&gt;conda-hook.ps1&lt;/STRONG&gt; file in the vanilla Anaconda installation, but none under Pro's version.&amp;nbsp; Instead when Pro starts up a Conda command prompt, it runs something like &lt;STRONG&gt;proenv.bat&lt;/STRONG&gt; or &lt;STRONG&gt;propy.bat&lt;/STRONG&gt;, and they're quite complex so I don't know how to turn them into Powershell scripts that do the same thing.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 20:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idc-p/1265705#M23618</guid>
      <dc:creator>ZacharyStauber1</dc:creator>
      <dc:date>2023-03-08T20:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conda Powershell</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idc-p/1275653#M24261</link>
      <description>&lt;P&gt;Should be available in Pro 3.1 since conda init has been implemented.&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1270116" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-pro-ideas/enhance-isolated-conda-installation-to-support/idc-p/1270116&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 08:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idc-p/1275653#M24261</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2023-04-05T08:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conda Powershell - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idc-p/1320773#M26016</link>
      <description>&lt;P&gt;Powershell support was added with Pro 3.1 as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10780"&gt;@Luke_Pinner&lt;/a&gt;&amp;nbsp;mentioned. It can be used by first configuring it with &lt;FONT face="terminal,monaco" size="2"&gt;conda init&lt;/FONT&gt;, see this blog post for further details:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/developers/conda-init-and-arcgis-pro/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/developers/conda-init-and-arcgis-pro/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If there's something else that you'd like to see on this front, feel free to add a comment and we can work to understand how it'd fit in.&lt;/P&gt;&lt;P&gt;Cheers, Shaun&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 16:16:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/conda-powershell/idc-p/1320773#M26016</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2023-08-21T16:16:18Z</dc:date>
    </item>
  </channel>
</rss>

