<?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: Which Python Environment? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223898#M17301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spyder knows.&amp;nbsp; From Preferences, python interpreter... the selection defaults to .... Default (same as Spyders)&lt;/P&gt;&lt;P&gt;Which basically means that if you are using a shortcut or similar, then the same one will be used all the time&lt;/P&gt;&lt;P&gt;If you want to launch a different interpreter, you can create different shortcuts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2017/07/01/arcgis-pro-2-creating-desktop-shortcuts"&gt;/blogs/dan_patterson/2017/07/01/arcgis-pro-2-creating-desktop-shortcuts&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Feb 2020 14:42:42 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2020-02-14T14:42:42Z</dc:date>
    <item>
      <title>Which Python Environment?</title>
      <link>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223897#M17300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As many of us do, I used ArcGis Pro to clone the default python environment where I add various packages. Using conda, not the Pro package manager I added the pyodbc package to my clone (hereinafter referred to as clone1)&amp;nbsp; and the installation warned me that other packages would be down-graded in the process. Okay. I figured I would leave clone1 alone, so I went back to Pro and cloned the default to clone2. I happen to like spyder so I added it to clone2 and then&amp;nbsp; added pyodbc&amp;nbsp; accepting the down grades.&amp;nbsp; Cool.&amp;nbsp; Now I have 3 python environmments: the default, clone1 and clone2.&amp;nbsp; Clone1 remains the active clone in ArcGis Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added&amp;nbsp; a new desktop shortcut that fires clone2 spyder and started experimenting with pyodbc.&amp;nbsp; How does a stand alone script know which environment is the right one?&amp;nbsp; I never thought about this till now; my scripts written in clone1 spyder work just fine, ignoring the default, and I &lt;EM&gt;guess&lt;/EM&gt; my scripts written in clone2 spyder will as well. Right?!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 13:25:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223897#M17300</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-02-14T13:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Which Python Environment?</title>
      <link>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223898#M17301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Spyder knows.&amp;nbsp; From Preferences, python interpreter... the selection defaults to .... Default (same as Spyders)&lt;/P&gt;&lt;P&gt;Which basically means that if you are using a shortcut or similar, then the same one will be used all the time&lt;/P&gt;&lt;P&gt;If you want to launch a different interpreter, you can create different shortcuts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2017/07/01/arcgis-pro-2-creating-desktop-shortcuts"&gt;/blogs/dan_patterson/2017/07/01/arcgis-pro-2-creating-desktop-shortcuts&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 14:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223898#M17301</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-14T14:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Which Python Environment?</title>
      <link>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223899#M17302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So... when standaloneScript.py&amp;nbsp;written in my clone2 spyder&amp;nbsp;executes&amp;nbsp; it follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/482229_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is initially set in the shortcut I created as per your instructions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/482234_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where PythonClone = clone2.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 15:04:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223899#M17302</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-02-14T15:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Which Python Environment?</title>
      <link>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223900#M17303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the one.... python/spyder doesn't care about where the script is located... just the python executable&lt;/P&gt;&lt;P&gt;It is possible (but don't go there!!!) to set things to reduce the amount of things that need copying/cloning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you get the drift as to why I am a big proponent&amp;nbsp;doing my install in the base environment... clones have their place where people have no control over their environment ... or are sheep or storm troopers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 15:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223900#M17303</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-02-14T15:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Which Python Environment?</title>
      <link>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223901#M17304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 15:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/which-python-environment/m-p/223901#M17304</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-02-14T15:59:32Z</dc:date>
    </item>
  </channel>
</rss>

