<?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: ArcMap can't find Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45406#M3585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan, &amp;nbsp;I typed the following commands into the Python window in ArcMap. &amp;nbsp;I hit the Return Key after each line. &amp;nbsp;I typed each line from you answer, then I re-started the computer but, when I type &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; print "test" &amp;nbsp; and press return, I don't get any response from the Python window. &amp;nbsp;I assume I am missing a step?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit;"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;import&lt;/SPAN&gt; sys
&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit;"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit;"&gt;&amp;gt;&lt;/SPAN&gt; sys&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;path&lt;/CODE&gt;
&amp;gt;&amp;gt;&amp;gt; sys.path 'C:\\Python27\\ArcGIS10.4\\lib' 
&amp;gt;&amp;gt;&amp;gt; sys.path 'C:\\Python27\\ArcGIS10.4\\lib\\plat-win'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:45:59 GMT</pubDate>
    <dc:creator>RickCheney</dc:creator>
    <dc:date>2021-12-10T21:45:59Z</dc:date>
    <item>
      <title>ArcMap can't find Python</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45404#M3583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My python scripts were running fine and then I upgraded from ArcGIS for Desktop - ArcMap 10.3 to 10.4.1 &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I open a Python window and type &amp;gt;&amp;gt;&amp;gt; print "test" &amp;nbsp; &amp;nbsp; nothing happens&lt;/P&gt;&lt;P&gt;when I type &amp;gt;&amp;gt;&amp;gt; import os&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; print os.sys.path&lt;/P&gt;&lt;P&gt;nothing happens. &amp;nbsp; I think ArcMap is looking for Python in the wrong location. &amp;nbsp;How can I fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this folder on my Windows 7 computer: &amp;nbsp; &amp;nbsp;C:\Python27\ArcGIS10.4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 14:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45404#M3583</guid>
      <dc:creator>RickCheney</dc:creator>
      <dc:date>2017-04-01T14:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap can't find Python</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45405#M3584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is best to uninstall other versions to upgrading. but none the less, bring up your favourite IDE and see what your path object is.&lt;/P&gt;&lt;P&gt;What is show is for 10.5... similar to 10.4 no less.&lt;/P&gt;&lt;P&gt;Here is the&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/get-started/installation-guide/python-requirement.htm" rel="nofollow noopener noreferrer" target="_blank"&gt; python requirements link &lt;/A&gt;, you can select 10.4 to see if there was anything different.&lt;/P&gt;&lt;P&gt;But in the end, the python27\\ArcGISxx.x version should match, but make sure there are no stray links in the sys path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; sys
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; sys&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; snip &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\DLLs'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\plat-win'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\lib-tk'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\Lib\\SITE-P~1\\PYTHON~1'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\site-packages'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\site-packages\\win32'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\site-packages\\win32\\lib'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'C:\\Python27\\ArcGIS10.5\\lib\\site-packages\\Pythonwin'&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# This example uses Pythonwin for arcmap 10.5‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:45:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45405#M3584</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-10T21:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap can't find Python</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45406#M3585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan, &amp;nbsp;I typed the following commands into the Python window in ArcMap. &amp;nbsp;I hit the Return Key after each line. &amp;nbsp;I typed each line from you answer, then I re-started the computer but, when I type &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; print "test" &amp;nbsp; and press return, I don't get any response from the Python window. &amp;nbsp;I assume I am missing a step?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit;"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;import&lt;/SPAN&gt; sys
&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit;"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039); border: 0px; font-weight: inherit;"&gt;&amp;gt;&lt;/SPAN&gt; sys&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;path&lt;/CODE&gt;
&amp;gt;&amp;gt;&amp;gt; sys.path 'C:\\Python27\\ArcGIS10.4\\lib' 
&amp;gt;&amp;gt;&amp;gt; sys.path 'C:\\Python27\\ArcGIS10.4\\lib\\plat-win'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45406#M3585</guid>
      <dc:creator>RickCheney</dc:creator>
      <dc:date>2021-12-10T21:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap can't find Python</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45407#M3586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so you don't use your own python IDE?&amp;nbsp; ok, here is arcmap's&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/345040_python_ide.png" style="width: 620px; height: 281px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 18:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45407#M3586</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-04-01T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap can't find Python</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45408#M3587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; print("hey") &amp;nbsp; &amp;nbsp;and &amp;gt;&amp;gt;&amp;gt;print ("hey") &amp;nbsp; and still nothing. &amp;nbsp;I tried to look up the commands for import sys using the ArcMap Python window but I didn't find anything different from what you showed me. &amp;nbsp;Should I use parens around the commands in the ArcMap Python window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 19:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45408#M3587</guid>
      <dc:creator>RickCheney</dc:creator>
      <dc:date>2017-04-01T19:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap can't find Python</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45409#M3588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rick, if you are having issues in the built-in Python window, you may want to uninstall Python using the&amp;nbsp;&lt;/P&gt;&lt;P&gt;Windies program add/delete and run a repair on the install. &amp;nbsp; Thus us mentioned in this thread&amp;nbsp;&lt;A href="https://community.esri.com/thread/36839"&gt;Python Path Confusion&lt;/A&gt;&amp;nbsp; &amp;nbsp;Among other suggestions, including checking registry entries, but the python uninstall and repair-install (of ArcGIS) is the most benign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is an external program (like Wing or pycripter) that you are opening up either separate for ArcGIS and/or by because you have the geoprocessing editor in ArcGIS set to use this external program, you may need to check the options/parameters of the external Python IDE and update&amp;nbsp;that path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re: &amp;nbsp;using&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;print("test")&lt;/P&gt;&lt;P&gt;at the Python print, as Dan would probably mention, it's best to get in the habit of including the ( ) in the pring statement. &amp;nbsp;It's not&amp;nbsp;mandatory (but works) for ArcGIS which uses Python 2.x, but will be necessary in Pro and Python 3.x.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 19:45:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45409#M3588</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-04-01T19:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap can't find Python</title>
      <link>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45410#M3589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I finally took your initial advice about uninstalling. &amp;nbsp;I uninstalled and re-installed Python and then from the Windows Control Panel, Programs and Features, Uninstall or change a program, I selected ArcGIS 10.4.1 for Desktop and clicked Uninstall/Change which popped up a window which gave me the option to "Repair" the ArcGIS installation and now it is working perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 21:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcmap-can-t-find-python/m-p/45410#M3589</guid>
      <dc:creator>RickCheney</dc:creator>
      <dc:date>2017-04-01T21:32:16Z</dc:date>
    </item>
  </channel>
</rss>

