<?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 General questions about Python scripting in ArcGIS and Python add-in development in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599921#M46889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Howdy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a totally newbie to everything in ArcGIS related to Python, although I am familiar with Python on its own. I tried to search through the ArcGIS documentation for answers to the following basic questions but got overwhelmed and lost in the massive information. So if someone can give me direct answers or point me to specific references (not general please), I will very appreciate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Does ArcMap 10.2 come with Python? i.e., if I don't install Python manually, will Python scripting work in ArcGIS?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If the answer to the above question is yes, then ArcMap must have installed a copy of Python somewhere to be invoked. Where is this copy of Python used by ArcMap? Can I change it so ArcMap invoke another copy of Python that I installed manually?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Similar to the first question, will a Python Add-in work if Python is not installed manually? &lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;What could possibly be the reason if ArcMap shows a command as missing in a toolbar from a Python Add-in?&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;P.S., please consider all the above questions on a Windows 7 64-bit system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 15:59:19 GMT</pubDate>
    <dc:creator>DongxiZheng</dc:creator>
    <dc:date>2013-12-19T15:59:19Z</dc:date>
    <item>
      <title>General questions about Python scripting in ArcGIS and Python add-in development</title>
      <link>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599921#M46889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Howdy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a totally newbie to everything in ArcGIS related to Python, although I am familiar with Python on its own. I tried to search through the ArcGIS documentation for answers to the following basic questions but got overwhelmed and lost in the massive information. So if someone can give me direct answers or point me to specific references (not general please), I will very appreciate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Does ArcMap 10.2 come with Python? i.e., if I don't install Python manually, will Python scripting work in ArcGIS?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;If the answer to the above question is yes, then ArcMap must have installed a copy of Python somewhere to be invoked. Where is this copy of Python used by ArcMap? Can I change it so ArcMap invoke another copy of Python that I installed manually?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Similar to the first question, will a Python Add-in work if Python is not installed manually? &lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;What could possibly be the reason if ArcMap shows a command as missing in a toolbar from a Python Add-in?&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;P.S., please consider all the above questions on a Windows 7 64-bit system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:59:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599921#M46889</guid>
      <dc:creator>DongxiZheng</dc:creator>
      <dc:date>2013-12-19T15:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: General questions about Python scripting in ArcGIS and Python add-in development</title>
      <link>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599922#M46890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Yes. Yes.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Yes. The default installation is usually: &lt;STRONG&gt;C:\Python27\ArcGIS10.2\...&lt;/STRONG&gt; Yes, it is possible to have multiple installations of Python on your computer (intentionally or not). But only one can be the default installation recognized by Windows. If you want to use your own Python installation, I recommend doing that installation first, then installing ArcGIS&amp;nbsp; (you'll be given the option to install Python or not). I don't personally recommend having multiple Python installations lying around unless you need them and know what you're doing.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Yes. As long as you've installed Python 2.7.x and numpy, everything should work.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;This is a potentially very different and unrelated problem. You'll have to provide more specifics.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Some information about Python installations and ArcGIS can be found at the bottom of &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z00000008000000" rel="nofollow" target="_blank"&gt;this page&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 12:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599922#M46890</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2013-12-20T12:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: General questions about Python scripting in ArcGIS and Python add-in development</title>
      <link>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599923#M46891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Yes. Yes.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Yes. The default installation is usually: &lt;STRONG&gt;C:\Python27\ArcGIS10.2\...&lt;/STRONG&gt; Yes, it is possible to have multiple installations of Python on your computer (intentionally or not). But only one can be the default installation recognized by Windows. If you want to use your own Python installation, I recommend doing that installation first, then installing ArcGIS&amp;nbsp; (you'll be given the option to install Python or not). I don't personally recommend having multiple Python installations lying around unless you need them and know what you're doing.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Yes. As long as you've installed Python 2.7.x and numpy, everything should work.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;This is a potentially very different and unrelated problem. You'll have to provide more specifics.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;Some information about Python installations and ArcGIS can be found at the bottom of &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z00000008000000"&gt;this page&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot philmorefield!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some follow-ups:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Regarding the last question I asked: No worry about that. I figured out later that it was caused by my screwing up the Python27 folder and related registry with temptations of uninstallation and reinstallation. To fix that, I cleared up all copies of Python on my computer, installed a brand new Python2.7 (in D:\Program Files\Python27), and repaired ArcGIS from CD (with "its" Python installed in D:\Program Files\Python27\ArcGIS10.2 and registered). Everything worked fine in ArcGIS after doing these.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Kind of following the above bullet and regarding your instruction on redirecting ArcGIS to use my installation of Python: So the fact is both copies exist and one nests in the other's folder. As suggested by you and most python users, maintaining only one copy of python is preferred. I prefer to keep my installation of Python since I have other non-ArcGIS related python projects using this copy. In this case, what should I do to let ArcGIS refer to my copy instead of its own copy and get rid of its own copy? I noticed that ArcGIS' copy contains more site-packages and its own configuration files (e.g., desktop10.2.pth). When redirecting, should I copy all these additional items over?&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 15:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599923#M46891</guid>
      <dc:creator>DongxiZheng</dc:creator>
      <dc:date>2013-12-20T15:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: General questions about Python scripting in ArcGIS and Python add-in development</title>
      <link>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599924#M46892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks a lot philmorefield!&lt;BR /&gt;Some follow-ups:&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Regarding the last question I asked: No worry about that. I figured out later that it was caused by my screwing up the Python27 folder and related registry with temptations of uninstallation and reinstallation. To fix that, I cleared up all copies of Python on my computer, installed a brand new Python2.7 (in D:\Program Files\Python27), and repaired ArcGIS from CD (with "its" Python installed in D:\Program Files\Python27\ArcGIS10.2 and registered). Everything worked fine in ArcGIS after doing these.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Kind of following the above bullet and regarding your instruction on redirecting ArcGIS to use my installation of Python: So the fact is both copies exist and one nests in the other's folder. As suggested by you and most python users, maintaining only one copy of python is preferred. I prefer to keep my installation of Python since I have other non-ArcGIS related python projects using this copy. In this case, what should I do to let ArcGIS refer to my copy instead of its own copy and get rid of its own copy? I noticed that ArcGIS' copy contains more site-packages and its own configuration files (e.g., desktop10.2.pth). When redirecting, should I copy all these additional items over?&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; Do these steps in order and you should be okay:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Copy the Desktop10.2.pth file and move it to the Python installation you want to keep: &lt;STRONG&gt;D:\Program Files\Python27\Lib\site-packages&lt;/STRONG&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Delete the entire Python installation you don't want to keep. Just hit the delete key and remove the whole folder: &lt;STRONG&gt;D:\Program Files\Python27\ArcGIS10.2&lt;/STRONG&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Go into System Properties-&amp;gt;Advanced-&amp;gt;Environment Variables and take a look at the "Path" System Variable. There should be only two reference to any Python folder there: &lt;STRONG&gt;D:\Program Files\Python27&lt;/STRONG&gt; and &lt;STRONG&gt;D:\Program Files\Python27\Scripts&lt;/STRONG&gt;. If those aren't there, add them. If any other Python-related path is there, delete it.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Check to see if you have numpy 1.6.x and matplotlib 1.1.x installed. If not, install them. If you want to match the ArcGIS installation you could add xlrd and xlwt as well.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;For future reference, running the ArcGIS installer will give you an option to skip the Python installation. You do this by selecting a "Custom" installation and then un-selecting Python.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2013 11:12:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599924#M46892</guid>
      <dc:creator>PhilMorefield</dc:creator>
      <dc:date>2013-12-21T11:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: General questions about Python scripting in ArcGIS and Python add-in development</title>
      <link>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599925#M46893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do these steps in order and you should be okay:&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Copy the Desktop10.2.pth file and move it to the Python installation you want to keep: &lt;STRONG&gt;D:\Program Files\Python27\Lib\site-packages&lt;/STRONG&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Delete the entire Python installation you don't want to keep. Just hit the delete key and remove the whole folder: &lt;STRONG&gt;D:\Program Files\Python27\ArcGIS10.2&lt;/STRONG&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Go into System Properties-&amp;gt;Advanced-&amp;gt;Environment Variables and take a look at the "Path" System Variable. There should be only two reference to any Python folder there: &lt;STRONG&gt;D:\Program Files\Python27&lt;/STRONG&gt; and &lt;STRONG&gt;D:\Program Files\Python27\Scripts&lt;/STRONG&gt;. If those aren't there, add them. If any other Python-related path is there, delete it.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Check to see if you have numpy 1.6.x and matplotlib 1.1.x installed. If not, install them. If you want to match the ArcGIS installation you could add xlrd and xlwt as well.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;For future reference, running the ArcGIS installer will give you an option to skip the Python installation. You do this by selecting a "Custom" installation and then un-selecting Python.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot Phil!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Dec 2013 16:46:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/general-questions-about-python-scripting-in-arcgis/m-p/599925#M46893</guid>
      <dc:creator>DongxiZheng</dc:creator>
      <dc:date>2013-12-22T16:46:27Z</dc:date>
    </item>
  </channel>
</rss>

