<?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 Improve support for Python 2 and 3 on the same Windows machine in Developers Ideas</title>
    <link>https://community.esri.com/t5/developers-ideas/improve-support-for-python-2-and-3-on-the-same/idi-p/927315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a standard install, when a user has both ArcGIS Desktop and ArcGISPro on their computer, there is no way to associate a .py file with the correct python interpreter because it could be either a python2 or a python3 script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard distribution of python3 for Windows includes a tool py.exe that allows&amp;nbsp;developers to specify which version of python the script runs under by putting "#! python3" or "#! python2" on the first line of the script.&amp;nbsp; The py.exe is associated with .py files and then it calls the correct interpreter according to the first line of the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Python 3 distribution that comes with ArcGISPro does not include this py.exe executable, and additionally does not register&amp;nbsp;PythonCore into HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE in a manner that would allow a downloaded py.exe to locate the Python 3 interpreter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If one or both of these items were implemented, it would make it easier for users to&amp;nbsp;work with both Python 2 and Python 3 scripts on our machines:&lt;/P&gt;&lt;P&gt;- distribute py.exe with ArcGISPro and configure it so it can call either Python2 or Python3&lt;/P&gt;&lt;P&gt;- populate the&amp;nbsp;HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore correctly so that a downloaded py.exe will work without additional configuration&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 18:48:54 GMT</pubDate>
    <dc:creator>JustinSlootsky</dc:creator>
    <dc:date>2017-10-23T18:48:54Z</dc:date>
    <item>
      <title>Improve support for Python 2 and 3 on the same Windows machine</title>
      <link>https://community.esri.com/t5/developers-ideas/improve-support-for-python-2-and-3-on-the-same/idi-p/927315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a standard install, when a user has both ArcGIS Desktop and ArcGISPro on their computer, there is no way to associate a .py file with the correct python interpreter because it could be either a python2 or a python3 script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard distribution of python3 for Windows includes a tool py.exe that allows&amp;nbsp;developers to specify which version of python the script runs under by putting "#! python3" or "#! python2" on the first line of the script.&amp;nbsp; The py.exe is associated with .py files and then it calls the correct interpreter according to the first line of the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Python 3 distribution that comes with ArcGISPro does not include this py.exe executable, and additionally does not register&amp;nbsp;PythonCore into HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE in a manner that would allow a downloaded py.exe to locate the Python 3 interpreter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If one or both of these items were implemented, it would make it easier for users to&amp;nbsp;work with both Python 2 and Python 3 scripts on our machines:&lt;/P&gt;&lt;P&gt;- distribute py.exe with ArcGISPro and configure it so it can call either Python2 or Python3&lt;/P&gt;&lt;P&gt;- populate the&amp;nbsp;HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore correctly so that a downloaded py.exe will work without additional configuration&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 18:48:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/improve-support-for-python-2-and-3-on-the-same/idi-p/927315</guid>
      <dc:creator>JustinSlootsky</dc:creator>
      <dc:date>2017-10-23T18:48:54Z</dc:date>
    </item>
  </channel>
</rss>

