<?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: Change where Arc looks for Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619806#M48307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sure there is a "right" way to do this, but between the stuff in the registry and the environment variables (PATH and/or PYTHONPATH), it becomes difficult to figure out what works and what doesn't... And what works and what doesn't can depend on what software you currently have... or even what different versions you have had in the past. Of course different version of Python and/or ArcGIS have used different methods to establish this path stuff over the years, so if you have an "older" machine that has had different versions of Python and/or ArcGIS installed on it at one point, then you registry is probably chock full of all sorts of keys with reference to all sorts of different paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A clean reinstall has always worked to get things straightened out for me... except recently: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/78704-Python-subprocess-module-and-64-bit-background-geoprocessing-in-v10.1"&gt;http://forums.arcgis.com/threads/78704-Python-subprocess-module-and-64-bit-background-geoprocessing-in-v10.1&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe just searching the registry for all the refs to your D:\Python27 install and change it to C:\Python27? Likewise, look for refs like this in the envr. variables too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 00:32:52 GMT</pubDate>
    <dc:creator>ChrisSnyder</dc:creator>
    <dc:date>2013-06-14T00:32:52Z</dc:date>
    <item>
      <title>Change where Arc looks for Python</title>
      <link>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619802#M48303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I recently installed the very useful 64bit geoprocessing patch (more info &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/10/31/announcing-64-bit-geoprocessing/"&gt;here&lt;/A&gt;&lt;SPAN&gt;). However, the admin guy installed the new Python to C:\Python27, while the old Python was installed (by default) to D:\Python27.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To keep things tidy we would like to move the old 32bit Python to C:\Python27 as well (note that I am not intending to put both versions in the same folder, but just to have C:\Python27\ArcGIS10.1 as the location of 32bit and C:\Python27\ArcGISx6410.1 as the location of 64bit). However, I cannot find out how to do this without killing Arc. Renaming the folder of the 32bit Python, hoping that it might no longer even be necessary) causes ArcCatalog to crash on startup (no error message, just sits on splash for a while then disappears).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought this would be defined through a link in the Arc install folder, or in the registry, however, neither of these seem to be the case. Am I missing something?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 00:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619802#M48303</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2013-06-13T00:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change where Arc looks for Python</title>
      <link>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619803#M48304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My understanding is the ArcMap needs the win32 version (whether you're going to use the 64-bit version or not).&amp;nbsp; I have both the win32 (which gets installed with the ArcMap installation) and I also put on the 64-bit version on.&amp;nbsp; I run all my python scripts from a windows command line so all I needed to do to get the 64-bit version to run is to change the windows PATH Environment variable (Control Panel &amp;gt; System &amp;gt; Advanced System Settings &amp;gt; Environment variables).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure how you'd change the drive where ArcMap is looking for python? (my guess would be the registry).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 15:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619803#M48304</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2013-06-13T15:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change where Arc looks for Python</title>
      <link>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619804#M48305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe not the best/fastest answer, but in the long run, probably the easiest:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Uninstall &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;everything&lt;/SPAN&gt;&lt;SPAN&gt; ArcGIS and Python (including 64bitbackground, 32-bit python, 64-bit Python, any other versions of Python, etc).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Delete the old Python folders (under C:\ and D:\) and the ArcGIS folder under C:\Program Files\ArcGIS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Reinstall everything using the default folders on C:\. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A somewhat related tale: A while back, our IT people cleverly (because they are ***experts***) decided to call the primary hard drives on our Citrix Servers the M:\ drive (instead of C:\). Needless to say, this turned out to be a very bad decision...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 16:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619804#M48305</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-06-13T16:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change where Arc looks for Python</title>
      <link>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619805#M48306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Chris, pretty much what we figured too. Unfortunately the initial install is a silent network install in our institute, so cannot simply change where Python is installed by that!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Might just have to leave it as is - really surprised there isn't some simple way to do it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 23:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619805#M48306</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2013-06-13T23:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change where Arc looks for Python</title>
      <link>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619806#M48307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sure there is a "right" way to do this, but between the stuff in the registry and the environment variables (PATH and/or PYTHONPATH), it becomes difficult to figure out what works and what doesn't... And what works and what doesn't can depend on what software you currently have... or even what different versions you have had in the past. Of course different version of Python and/or ArcGIS have used different methods to establish this path stuff over the years, so if you have an "older" machine that has had different versions of Python and/or ArcGIS installed on it at one point, then you registry is probably chock full of all sorts of keys with reference to all sorts of different paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A clean reinstall has always worked to get things straightened out for me... except recently: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/78704-Python-subprocess-module-and-64-bit-background-geoprocessing-in-v10.1"&gt;http://forums.arcgis.com/threads/78704-Python-subprocess-module-and-64-bit-background-geoprocessing-in-v10.1&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe just searching the registry for all the refs to your D:\Python27 install and change it to C:\Python27? Likewise, look for refs like this in the envr. variables too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 00:32:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619806#M48307</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-06-14T00:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change where Arc looks for Python</title>
      <link>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619807#M48308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your suggestion to search "C:\Python27" - previously I had searched the registry for the full Python path (i.e. C:\Python27\ArcGIS10.1), and didn't find much. The search you suggested turned up three fruitful looking keys (ESRI ones pointing to Python), however, changing them:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - to a non-existent path didn't cause anything not to open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - to a path to which Python was manually copied, and the old one deleted, still caused ArcCatalog not to open.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, it appears the only solution would be complete uninstall and reinstall, as you suggested...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 21:31:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619807#M48308</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2013-06-27T21:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change where Arc looks for Python</title>
      <link>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619808#M48309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z00000008000000"&gt;help&lt;/A&gt;&lt;SPAN&gt; might get you on the right track, but I'm pretty sure the biggest key is going to be creating the Desktop10.1.pth file, which is discussed in the above article. This is a pointer from python27 to the ArcGIS Install location, so you'll definitely need that if you haven't done so already. For me, the Desktop10.1.pth file is located here: C:\Python27\ArcGIS10.1\Lib\site-packages. It's basically a text file called "Desktop10.1" with the file extension of ".pth" and has a few paths in it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\ArcToolbox\Scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not positive this will completely take care of it for you, but it's a good place to start if you haven't done this already.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 22:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619808#M48309</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2013-06-27T22:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change where Arc looks for Python</title>
      <link>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619809#M48310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Lucas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Desktop10.1.pth file tells Python where to look for required parts of the Arcpy library. I need to tell ArcGIS where to look for Python, which is an entirely different problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My current 32bit Python27, installed by ArcGIS during its install, is at &lt;/SPAN&gt;&lt;STRONG&gt;D:\Python27\ArcGIS10.1&lt;/STRONG&gt;&lt;SPAN&gt;, while ArcGISs' 64bit Python, installed as part of the 64bit Background Geoprocessing patch (installed by my system admin), was placed at &lt;/SPAN&gt;&lt;STRONG&gt;C:\Python27\ArcGISx6410.1&lt;/STRONG&gt;&lt;SPAN&gt;. We want to move the 32bit Python27 from &lt;/SPAN&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&lt;/STRONG&gt;&lt;SPAN&gt; to &lt;/SPAN&gt;&lt;STRONG&gt;C:&lt;/STRONG&gt;&lt;SPAN&gt;, so that both Pythons have the same root folder of &lt;/SPAN&gt;&lt;STRONG&gt;C:\Python27&lt;/STRONG&gt;&lt;SPAN&gt;, with 32bit in a &lt;/SPAN&gt;&lt;STRONG&gt;\ArcGIS10.1\&lt;/STRONG&gt;&lt;SPAN&gt; subfolder and 64bit in a &lt;/SPAN&gt;&lt;STRONG&gt;\ArcGISx6410.1\&lt;/STRONG&gt;&lt;SPAN&gt; subfolder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that if I move the 32bit Python, or rename its folder, ArcCatalog will not start. Altering the registry keys I mentioned in an earlier post, so that they point to the modified location, makes no difference, ArcCatalog still will not start.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 21:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/change-where-arc-looks-for-python/m-p/619809#M48310</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2013-07-01T21:45:27Z</dc:date>
    </item>
  </channel>
</rss>

