<?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 RuntimeError: The Product License has not been initialized when trying to clone Python environment via Anaconda Prompt in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/runtimeerror-the-product-license-has-not-been/m-p/1052037#M40323</link>
    <description>&lt;P&gt;I am trying to clone my arcgispro-py3 Python environment with the default path&amp;nbsp; C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3. I want to clone it to a location that 1) I can access without admin rights and 2 ) will be recognized when I list out environments in Anaconda Prompt with conda env list. I need to clone it because I need it to be in a location that I can make changes to (e.g. install additional python packages to). I am following the instructions from&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000020560" target="_blank" rel="noopener"&gt;How To: Clone a Python environment with the Python Command Prompt (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If I make a clone arcgispro-py3 via Python Command prompt with a specified path (conda create --clone arcgispro-py3 --name C:\Users\me\Documents\Conda_Clone\arcgispro-py3_clone), the clone is created successfully. However, since I am&amp;nbsp;&lt;SPAN&gt;placing the conda environment outside of the default envs f&lt;/SPAN&gt;&lt;SPAN&gt;older,&amp;nbsp;&lt;/SPAN&gt;the environment is not named (i.e. I cannot refer to it with --name nor is it listed with conda env list in the Python Command Prompt).&lt;/P&gt;&lt;P&gt;In order to have the clone named, I tried cloning it to my default envs folder two ways. My first attempt was via Python Command prompt (conda create --clone arcgispro-py3 --name C:\Users\me\Anaconda3\envs\arcgispro-py3_clone). This attempt does nothing and prints out Access is denied.&lt;/P&gt;&lt;P&gt;My second attempt was with Anaconda Prompt (with base environment activated) :&lt;/P&gt;&lt;P&gt;conda create --clone "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3" --name arcgispro-py3_clone&lt;/P&gt;&lt;P&gt;With this Anaconda Prompt attempt, I receive:&lt;/P&gt;&lt;P&gt;File "C:\Users\me\Anaconda3\envs\arcgispro-py3_clone\lib\site-packages\arcgisscripting\__init__.py", line 128, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ._arcgisscripting import *&lt;BR /&gt;RuntimeError: The Product License has not been initialized.&lt;/P&gt;&lt;P&gt;My main question is: How can I clone my arcgispro-py3 python environment as a named environment to my default envs folder?&lt;/P&gt;&lt;P&gt;Also out of curiosity:&lt;/P&gt;&lt;P&gt;Why do I suddenly have licensing issues when cloning to one directory as opposed to another?&lt;/P&gt;&lt;P&gt;Why does cloning an arcgispro-py3 python environment perform differently via Anaconda prompt vs. Python Command Prompt?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 23:57:31 GMT</pubDate>
    <dc:creator>Eniac-6</dc:creator>
    <dc:date>2021-04-27T23:57:31Z</dc:date>
    <item>
      <title>RuntimeError: The Product License has not been initialized when trying to clone Python environment via Anaconda Prompt</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/runtimeerror-the-product-license-has-not-been/m-p/1052037#M40323</link>
      <description>&lt;P&gt;I am trying to clone my arcgispro-py3 Python environment with the default path&amp;nbsp; C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3. I want to clone it to a location that 1) I can access without admin rights and 2 ) will be recognized when I list out environments in Anaconda Prompt with conda env list. I need to clone it because I need it to be in a location that I can make changes to (e.g. install additional python packages to). I am following the instructions from&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000020560" target="_blank" rel="noopener"&gt;How To: Clone a Python environment with the Python Command Prompt (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If I make a clone arcgispro-py3 via Python Command prompt with a specified path (conda create --clone arcgispro-py3 --name C:\Users\me\Documents\Conda_Clone\arcgispro-py3_clone), the clone is created successfully. However, since I am&amp;nbsp;&lt;SPAN&gt;placing the conda environment outside of the default envs f&lt;/SPAN&gt;&lt;SPAN&gt;older,&amp;nbsp;&lt;/SPAN&gt;the environment is not named (i.e. I cannot refer to it with --name nor is it listed with conda env list in the Python Command Prompt).&lt;/P&gt;&lt;P&gt;In order to have the clone named, I tried cloning it to my default envs folder two ways. My first attempt was via Python Command prompt (conda create --clone arcgispro-py3 --name C:\Users\me\Anaconda3\envs\arcgispro-py3_clone). This attempt does nothing and prints out Access is denied.&lt;/P&gt;&lt;P&gt;My second attempt was with Anaconda Prompt (with base environment activated) :&lt;/P&gt;&lt;P&gt;conda create --clone "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3" --name arcgispro-py3_clone&lt;/P&gt;&lt;P&gt;With this Anaconda Prompt attempt, I receive:&lt;/P&gt;&lt;P&gt;File "C:\Users\me\Anaconda3\envs\arcgispro-py3_clone\lib\site-packages\arcgisscripting\__init__.py", line 128, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ._arcgisscripting import *&lt;BR /&gt;RuntimeError: The Product License has not been initialized.&lt;/P&gt;&lt;P&gt;My main question is: How can I clone my arcgispro-py3 python environment as a named environment to my default envs folder?&lt;/P&gt;&lt;P&gt;Also out of curiosity:&lt;/P&gt;&lt;P&gt;Why do I suddenly have licensing issues when cloning to one directory as opposed to another?&lt;/P&gt;&lt;P&gt;Why does cloning an arcgispro-py3 python environment perform differently via Anaconda prompt vs. Python Command Prompt?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 23:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/runtimeerror-the-product-license-has-not-been/m-p/1052037#M40323</guid>
      <dc:creator>Eniac-6</dc:creator>
      <dc:date>2021-04-27T23:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: The Product License has not been initialized when trying to clone Python environment via Anaconda Prompt</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/runtimeerror-the-product-license-has-not-been/m-p/1052044#M40324</link>
      <description>&lt;P&gt;If you are using Pro 2.7, you might just want to follow the help topic&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/work-with-python-environments.htm" target="_blank"&gt;Work with Python environments—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;since there is no Pro 2.6 for that help topic, it might have changed.&lt;/P&gt;&lt;P&gt;It appears that you want it in your User folder in any event&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 00:18:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/runtimeerror-the-product-license-has-not-been/m-p/1052044#M40324</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-28T00:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: The Product License has not been initialized when trying to clone Python environment via Anaconda Prompt</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/runtimeerror-the-product-license-has-not-been/m-p/1053770#M40506</link>
      <description>&lt;P&gt;Thanks Dan,&lt;/P&gt;&lt;P&gt;Unfortunately the manual way doesn't seem to give me an option to choose the directory it will be created in.&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 14:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/runtimeerror-the-product-license-has-not-been/m-p/1053770#M40506</guid>
      <dc:creator>Eniac-6</dc:creator>
      <dc:date>2021-05-03T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: RuntimeError: The Product License has not been initialized when trying to clone Python environment via Anaconda Prompt</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/runtimeerror-the-product-license-has-not-been/m-p/1183196#M56220</link>
      <description>&lt;P&gt;My work around for this ended up being uninstalling Pro and then reinstalling but this time instead of for all users, I installed for a single user to a location where I had read/write access to. I then reinstalled Anaconda to the default install location, installed for single user and uncheck both options (set path and set as default python).&lt;/P&gt;&lt;P&gt;I was then able to clone my&amp;nbsp;&lt;SPAN&gt;arcgispro-py3 environment via python command prompt with:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;conda create --clone arcgispro-py3 --name arcgispro-py3_cloned&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:59:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/runtimeerror-the-product-license-has-not-been/m-p/1183196#M56220</guid>
      <dc:creator>Eniac-6</dc:creator>
      <dc:date>2022-06-15T15:59:35Z</dc:date>
    </item>
  </channel>
</rss>

