<?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: ArcPy Module not loading in Command Line in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90835#M7082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try running the command line as an administrator with the same result. I'm wondering if I need to run command line in compatibility mode...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2016 13:15:44 GMT</pubDate>
    <dc:creator>AngelaBozeman</dc:creator>
    <dc:date>2016-03-28T13:15:44Z</dc:date>
    <item>
      <title>ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90826#M7073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I installed ArcMap 10.3.1 on a Windows 10 computer (using Python2.7.8) and arcpy imports properly in ArcMap and the Python IDLE but gets hung up when using command line. When importing, the cursor flashes like it's working but nothing ever happens. I have made sure the System properties reflect the path to the python folder and that the Desktop10.3.pth is correct. Any suggestions are appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:13:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90826#M7073</guid>
      <dc:creator>AngelaBozeman</dc:creator>
      <dc:date>2016-03-22T19:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90827#M7074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Compare the sys.path you are getting from IDLE from the one you get from the command line. That may help you figure out what's going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys
print(sys.version)&amp;nbsp; # active version of python
print(sys.prefix)&amp;nbsp;&amp;nbsp; # python exec path
print("\n".join(sys.path))&amp;nbsp; # current&amp;nbsp; path setting used by import&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90827#M7074</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T23:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90828#M7075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When running in Command Line vs. IDLE the only difference in the two print statements is IDLE prints C:\windows\SYSTEM32 and C:\Python27\ArcGIS10.3\Lib\idleLib while command line does not have those lines. I tried adding C:\Python27\ArcGIS10.3\Lib\idleLib to the PTH in my system environment variables but it didn't seem to change anything.&lt;/P&gt;&lt;P&gt;Here is what the IDLE print statements look like.&lt;/P&gt;&lt;P&gt;****VERSION****&lt;/P&gt;&lt;P&gt;2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)]&lt;/P&gt;&lt;P&gt;****PREFIX****&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.3&lt;/P&gt;&lt;P&gt;****CURRENT PATH****&lt;/P&gt;&lt;P&gt;C:/deleteme&lt;/P&gt;&lt;P&gt;C:\windows\system32&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.3\Lib\idlelib&lt;/P&gt;&lt;P&gt;C:\windows\SYSTEM32\python27.zip&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.3\DLLs&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.3\lib&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.3\lib\plat-win&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.3\lib\lib-tk&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.3&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.3\lib\site-packages&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.3\bin&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcToolBox\Scripts&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/192983_Capture.PNG" style="width: 620px; height: 397px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90828#M7075</guid>
      <dc:creator>AngelaBozeman</dc:creator>
      <dc:date>2016-03-24T13:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90829#M7076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is correct for python 2.7 installed version for arcmap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90829#M7076</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-24T16:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90830#M7077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be a UAC issue... did you try using the Admin command prompt? Right mouse on the start button, select Command Prompt (Admin)&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/193121_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 21:03:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90830#M7077</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2016-03-25T21:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90831#M7078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is strange. Two more thoughts, don't know if they are worth much... &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I didn't think 10.3 was supported under Windows 10.&lt;/LI&gt;&lt;LI&gt;If you are using a different Python than that shipped with ArcGIS I recommend uninstalling it and doing a repair install of ArcGIS to install Esri's python just to make sure everything is in synch.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 07:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90831#M7078</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-03-26T07:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90832#M7079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try removing/uninstalling application completely and Install from scratch.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 18:14:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90832#M7079</guid>
      <dc:creator>User35489</dc:creator>
      <dc:date>2016-03-26T18:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90833#M7080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should clarify which application to uninstall.&amp;nbsp; Uninstalling ArcMap would accomplish nothing since remnants of one or more versions of python would probably still reside in the system.&amp;nbsp; Perhaps, a systematic and judicious purging of extra python versions would be prudent.&amp;nbsp; However, removing applications without an understanding of the root problem generally results in retrieving valuable disk space... but nothing else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 18:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90833#M7080</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-26T18:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90834#M7081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to run ArcGIS 10.3.1 in compatibility mode for it to run properly but I haven't had any issues with ArcGIS 10.3.1.&lt;/P&gt;&lt;P&gt;I am using the python that is installed with ArcGIS (Python 2.7.8) and I actually uninstalled the python 3.4 that also came with the ArcGIS installation in the event that is was causing confusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 13:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90834#M7081</guid>
      <dc:creator>AngelaBozeman</dc:creator>
      <dc:date>2016-03-28T13:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90835#M7082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try running the command line as an administrator with the same result. I'm wondering if I need to run command line in compatibility mode...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 13:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90835#M7082</guid>
      <dc:creator>AngelaBozeman</dc:creator>
      <dc:date>2016-03-28T13:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90836#M7083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Python 3.4.x comes with ArcGIS PRO and both python 2.7.x and python 3.4.x live quite happily in either ArcMap 10.3.1/10.4 or ArcGIS Pro 1.1/1.2.&amp;nbsp; The import thing, other that messing around with other distributions etc, is when what was installed and how you manage them.&amp;nbsp; In a simple world, ArcWhatever would be installed and install whatever version of python it needs.&amp;nbsp; When things go weird is when things don't follow the expected order of progression from an Arc* perspective.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 13:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90836#M7083</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-28T13:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90837#M7084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angela:&lt;/P&gt;&lt;P&gt;I'm running ArcGIS Desktop 10.3.1 on Windows 10.0.10586 (this is the November 2015 stable build i believe).&amp;nbsp; I don't have any trouble running ArcGIS or ArcPY or need to do anything special ie compatibility mode for either. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get the same result with both the 32bit and 64bit version of python?&amp;nbsp; &lt;/P&gt;&lt;P&gt;C:\&amp;gt;c:\Python27\ArcGISx6410.3\python.exe&lt;/P&gt;&lt;P&gt;C:\&amp;gt;c:\Python27\ArcGIS10.3\python.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does seem like something is a little off with the whole install.&amp;nbsp; I'd probably uninstall ArcGIS Desktop, verify everything is removed from the "c:\Program Files (x86)\ArcGIS\Desktop10.3" folder and remove/delete the entire python C:\Python27 directory... just to make sure something older artifact is not lingering.&amp;nbsp; Then reinstall ArcGIS Dekstop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 15:41:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90837#M7084</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2016-03-28T15:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Module not loading in Command Line</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90838#M7085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angela:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing you can test:&amp;nbsp; run python with the verbose flag.&amp;nbsp; This will generate a lot of output in the window but should help figure out where the import in sticking:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\&amp;gt;c:\Python27\ArcGIS10.3\python.exe &lt;STRONG&gt;-v&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193229_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 15:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-module-not-loading-in-command-line/m-p/90838#M7085</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2016-03-28T15:46:06Z</dc:date>
    </item>
  </channel>
</rss>

