<?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 ImportError: No module named arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673544#M52081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am following the exercise on chapter, Python Primer, to run scripts in the command window. When I do the second exercise, I get a message: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\PYTHON_PRIMER\Chapter11&amp;gt;python CommandLine_Clip.py 'c:\PYTHON_PRIMER\Chapter1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1\Data' City_Facilities.shp Central_City_CommPlan.shp c:\PYTHON_PRIMER\Chapter11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\MyData' out_file.shp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "CommandLine_Clip.py", line 15, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy, sys, os, traceback, datetime&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: No module named arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I have no problem running the arcpy command in PyScripter or the Python Window, just in the command prompt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The computer system variable path is pointing to python: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;........................;C:\Program Files (x86)\ArcGIS\EsriProductionMapping\Desktop10.1\Bin;C:\Program Files (x86)\ArcGIS\Desktop10.1\Bin;c:\Python27\ArcGIS10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could be the problem? Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Batch and Schedule a Geoprocessing Script # Created by: Nathan Jennings #&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; www.jenningsplanet.com # Created on: 05.24.2011 # Update on: 10.24.2011 # Copyright: 2011&amp;nbsp; ''' !!!!&amp;nbsp; Change the output and log file paths as needed where the Chapter 11 folders exist.!!!&amp;nbsp; Save these changes.&amp;nbsp; Test the script to make sure it executes properly. '''&amp;nbsp;&amp;nbsp; import arcpy, sys, os, traceback, datetime&amp;nbsp; CURDATE = datetime.date.today()&amp;nbsp; try:&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # workspace for input data &amp;nbsp;&amp;nbsp;&amp;nbsp; # e.g c:\\pythonprimer\\chapter11\\data &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = arcpy.GetParameterAsText(0)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # name of input shapefile feature class to be clipped &amp;nbsp;&amp;nbsp;&amp;nbsp; # i.e. city_facilities.shp &amp;nbsp;&amp;nbsp;&amp;nbsp; infile = arcpy.GetParameterAsText(1)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # name of clip shapefile feature class to use as the clip file &amp;nbsp;&amp;nbsp;&amp;nbsp; # i.e. central_city_commplan.shp &amp;nbsp;&amp;nbsp;&amp;nbsp; clipfile = arcpy.GetParameterAsText(2)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # output folder name for output &amp;nbsp;&amp;nbsp;&amp;nbsp; # e.g. c:\\pythonprimer\\chapter11\\mydata &amp;nbsp;&amp;nbsp;&amp;nbsp; output_ws = arcpy.GetParameterAsText(3)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # name of the output feature class &amp;nbsp;&amp;nbsp;&amp;nbsp; # NOTE: the output path is hard coded to the following path &amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the user will need to change this location &amp;nbsp;&amp;nbsp;&amp;nbsp; outfile = output_ws + os.sep + arcpy.GetParameterAsText(4)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # location of log file for tracking messages &amp;nbsp;&amp;nbsp;&amp;nbsp; logfile = output_ws + '\\log' + str(CURDATE) + '.txt'&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(logfile): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(logfile)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Open the log file for writing &amp;nbsp;&amp;nbsp;&amp;nbsp; log = open(logfile, 'a')&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print '\nRunning Clip Routine...' &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Running Clip Routine...' &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Input workspace is: ' + arcpy.env.workspace &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Input workspace is: ' + arcpy.env.workspace &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Input file is: ' + infile &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Input file is: ' + infile &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Clip file is: ' + clipfile &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Clip file is: ' + clipfile &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Output workspace is: ' + output_ws &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Output workspace is: ' + output_ws &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Output file is: ' + outfile &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Output file is: ' + outfile&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(outfile): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(outfile)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_analysis(infile, clipfile, outfile)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Completed Clip' &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Completed Clip'&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.close()&amp;nbsp; except: &amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages(2) &amp;nbsp;&amp;nbsp;&amp;nbsp; tb = sys.exc_info()[2] &amp;nbsp;&amp;nbsp;&amp;nbsp; tbinfo = traceback.format_tb(tb)[0] &amp;nbsp;&amp;nbsp;&amp;nbsp; pymsg = "PYTHON ERRORS:\nTraceback Info:\n" + tbinfo + "\nError Info:\n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " +&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str(sys.exc_type) + ": " + str(sys.exc_value) + "\n" &amp;nbsp;&amp;nbsp;&amp;nbsp; msgs = "arcpy ERRORS:\n" + arcpy.GetMessages(2) + "\n"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(msgs) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(pymsg)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print msgs &amp;nbsp;&amp;nbsp;&amp;nbsp; print pymsg&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(arcpy.GetMessages(1)) &amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages(1) &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2013 14:27:42 GMT</pubDate>
    <dc:creator>ionarawilson1</dc:creator>
    <dc:date>2013-07-24T14:27:42Z</dc:date>
    <item>
      <title>ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673544#M52081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am following the exercise on chapter, Python Primer, to run scripts in the command window. When I do the second exercise, I get a message: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\PYTHON_PRIMER\Chapter11&amp;gt;python CommandLine_Clip.py 'c:\PYTHON_PRIMER\Chapter1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1\Data' City_Facilities.shp Central_City_CommPlan.shp c:\PYTHON_PRIMER\Chapter11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\MyData' out_file.shp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "CommandLine_Clip.py", line 15, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy, sys, os, traceback, datetime&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: No module named arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I have no problem running the arcpy command in PyScripter or the Python Window, just in the command prompt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The computer system variable path is pointing to python: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;........................;C:\Program Files (x86)\ArcGIS\EsriProductionMapping\Desktop10.1\Bin;C:\Program Files (x86)\ArcGIS\Desktop10.1\Bin;c:\Python27\ArcGIS10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could be the problem? Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# Batch and Schedule a Geoprocessing Script # Created by: Nathan Jennings #&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; www.jenningsplanet.com # Created on: 05.24.2011 # Update on: 10.24.2011 # Copyright: 2011&amp;nbsp; ''' !!!!&amp;nbsp; Change the output and log file paths as needed where the Chapter 11 folders exist.!!!&amp;nbsp; Save these changes.&amp;nbsp; Test the script to make sure it executes properly. '''&amp;nbsp;&amp;nbsp; import arcpy, sys, os, traceback, datetime&amp;nbsp; CURDATE = datetime.date.today()&amp;nbsp; try:&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # workspace for input data &amp;nbsp;&amp;nbsp;&amp;nbsp; # e.g c:\\pythonprimer\\chapter11\\data &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = arcpy.GetParameterAsText(0)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # name of input shapefile feature class to be clipped &amp;nbsp;&amp;nbsp;&amp;nbsp; # i.e. city_facilities.shp &amp;nbsp;&amp;nbsp;&amp;nbsp; infile = arcpy.GetParameterAsText(1)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # name of clip shapefile feature class to use as the clip file &amp;nbsp;&amp;nbsp;&amp;nbsp; # i.e. central_city_commplan.shp &amp;nbsp;&amp;nbsp;&amp;nbsp; clipfile = arcpy.GetParameterAsText(2)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # output folder name for output &amp;nbsp;&amp;nbsp;&amp;nbsp; # e.g. c:\\pythonprimer\\chapter11\\mydata &amp;nbsp;&amp;nbsp;&amp;nbsp; output_ws = arcpy.GetParameterAsText(3)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # name of the output feature class &amp;nbsp;&amp;nbsp;&amp;nbsp; # NOTE: the output path is hard coded to the following path &amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the user will need to change this location &amp;nbsp;&amp;nbsp;&amp;nbsp; outfile = output_ws + os.sep + arcpy.GetParameterAsText(4)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # location of log file for tracking messages &amp;nbsp;&amp;nbsp;&amp;nbsp; logfile = output_ws + '\\log' + str(CURDATE) + '.txt'&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(logfile): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(logfile)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Open the log file for writing &amp;nbsp;&amp;nbsp;&amp;nbsp; log = open(logfile, 'a')&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print '\nRunning Clip Routine...' &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Running Clip Routine...' &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Input workspace is: ' + arcpy.env.workspace &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Input workspace is: ' + arcpy.env.workspace &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Input file is: ' + infile &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Input file is: ' + infile &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Clip file is: ' + clipfile &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Clip file is: ' + clipfile &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Output workspace is: ' + output_ws &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Output workspace is: ' + output_ws &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Output file is: ' + outfile &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Output file is: ' + outfile&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if arcpy.Exists(outfile): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(outfile)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_analysis(infile, clipfile, outfile)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print 'Completed Clip' &amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;gt;&amp;gt; log, 'Completed Clip'&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; log.close()&amp;nbsp; except: &amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages(2) &amp;nbsp;&amp;nbsp;&amp;nbsp; tb = sys.exc_info()[2] &amp;nbsp;&amp;nbsp;&amp;nbsp; tbinfo = traceback.format_tb(tb)[0] &amp;nbsp;&amp;nbsp;&amp;nbsp; pymsg = "PYTHON ERRORS:\nTraceback Info:\n" + tbinfo + "\nError Info:\n&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " +&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; str(sys.exc_type) + ": " + str(sys.exc_value) + "\n" &amp;nbsp;&amp;nbsp;&amp;nbsp; msgs = "arcpy ERRORS:\n" + arcpy.GetMessages(2) + "\n"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(msgs) &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddError(pymsg)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print msgs &amp;nbsp;&amp;nbsp;&amp;nbsp; print pymsg&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(arcpy.GetMessages(1)) &amp;nbsp;&amp;nbsp;&amp;nbsp; print arcpy.GetMessages(1) &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 14:27:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673544#M52081</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-07-24T14:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673545#M52082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please test two things:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Navigate into your ArcGIS Python folder, double click that python.exe enter 'import arcpy'&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Go the the command line and type in 'python' then 'import arcpy' what happens? I.e.:&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;C:\&amp;gt;python
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt;import arcpy&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the first thing works then your ArcGIS Python is working fine (which the fact that PyScripter works also corroborates).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the second thing fails I guess that your Path might have another Python on it, located before (to the left) of the ArcGIS Python. As the system works from left to right and takes the first python.exe it finds, you might inadvertently be loading the other one. The one that cannot access Arcpy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is the case you can do one of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;delete the other Python from your path&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;move ArcGIS Python to the start of your path&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;allow the other Python to access Arcpy&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend either the first or second option. Details for doing the third can be found &lt;/SPAN&gt;&lt;A href="http://pythongisandstuff.wordpress.com/2013/07/10/locating-python-adding-to-path-and-accessing-arcpy/" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673545#M52082</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2021-12-12T04:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673546#M52083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Stacy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried that and I still got an error. All the python.exe versions I have gave me an error. I am not sure which version ArcGIS is using now. It seems I have an installation of Python for ArcGISx6410.1 also, but if I delete this folder, arcpy still works in ArcGIS. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell which python is running by looking at the software installed? Is is python for 32 or 64?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did not have another python from the path. However, I moved the one you suggested to the front (please see images in this post and next). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, is it ok that Python27\Lib has a folder called site-packages and python27\arcgis10.1\Lib also has a folder site-packages?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also had a version of python26 that I removed yesterday because 10.1 uses 26 and I figured I don't need it anymore. Could the python be in another variable besides path? Not sure if any of this is contributing to the problem. Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26196[/ATTACH][ATTACH=CONFIG]26197[/ATTACH][ATTACH=CONFIG]26198[/ATTACH][ATTACH=CONFIG]26199[/ATTACH][ATTACH=CONFIG]26200[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:19:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673546#M52083</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-07-25T13:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673547#M52084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And here are the other images&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26205[/ATTACH][ATTACH=CONFIG]26201[/ATTACH][ATTACH=CONFIG]26202[/ATTACH][ATTACH=CONFIG]26203[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think what is making arcgis work with arcpy is that insided Python\Lib\site-packages there is a file called DEsktop10.1.pth pointing to arcpy:&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here are all the paths in the path variable. I looked at all the system variables and there is not a python anywhere else&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1;%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\jZip;C:\Program Files\ArcGIS\ArcSDE\sqlexe\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\ArcGIS\EsriProductionMapping\Desktop10.1\Bin;C:\Program Files (x86)\ArcGIS\Desktop10.1\Bin;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673547#M52084</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-07-25T13:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673548#M52085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What does it look like when you print off your PYTHONPATH from within the interactive window of IDLE?&amp;nbsp; I see that you are on python 2.7.3.&amp;nbsp; Did you install that separately? Or is that what was installed with your 10.1 install?&amp;nbsp; (I only ask because I also have 10.1 and mine came with python version 2.7.2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import sys
for p in sys.path:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print p

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a screenshot of mine (both 32 bit and 64 bit version, also I added a few folders to my .pth file for 64 bit)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26208[/ATTACH][ATTACH=CONFIG]26209[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673548#M52085</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T04:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673549#M52086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems I have two versions of Idle. I think I installed the 2.7.3 by downloading and installing it by myself. I am not sure about the other version though. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I enter the expression I get this for the Idle version 2.7.2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\ProgramData\Microsoft\Windows\Start Menu\Programs\ArcGIS\Python 2.7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\Lib\idlelib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Windows\system32\python27.zip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\DLLs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\lib\plat-win&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\lib\lib-tk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\lib\site-packages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\lib\site-packages\win32&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\lib\site-packages\win32\lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\ArcGIS10.1\lib\site-packages\Pythonwin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And this for the version idle version 2.7.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\Lib\idlelib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\lib\site-packages\distribute-0.6.25-py2.7.egg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Windows\system32\python27.zip&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\DLLs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\lib\plat-win&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\lib\lib-tk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Python27\lib\site-packages&lt;/SPAN&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;SPAN&gt;C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg-info&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26210[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26211[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26213[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26212[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]26214[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:31:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673549#M52086</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-07-25T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673550#M52087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I think the problem is coming from the 2.7.3.&amp;nbsp; Whenever you install a new version of python/IDLE, it will always default to the most recent install.&amp;nbsp; Since you installed 2.7.3 AFTER the ArcGIS install that had 2.7.2, your default python is 2.7.3.&amp;nbsp; Your PYTHONPATH for 2.7.3 has some of the folders, but not all and it is not accessing the arcpy DLL's.&amp;nbsp; I think you should delete this and that *should* fix the problem.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was there a particular reason for the 2.7.3 install?&amp;nbsp; I do not think there would be a big difference in functionality between 2.7.2 and 2.7.3.&amp;nbsp; There is a pretty big difference in 2.7 vs 3.x, but I think you would be best off by unistalling 2.7.3.&amp;nbsp; Then, your default python should go back to 2.7.2 and arcpy should work no problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 15:03:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673550#M52087</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-07-25T15:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673551#M52088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So Caleb, the install you see in this image,is this the one I should uninstall? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure where 2.7.2 is installed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't I have the 2.7.2&amp;nbsp; in this image?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, which one is the pythonpath for 2.7.3 that I should delete?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Because it seems the python in ArcGIS is also 2.7.3. I check the version in the python window and I got:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So why arcpy works in 2.7.3 but not in the command window? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, where do I get 2.7.2? should I get it from the arcgis installation disc if I have it, should I reinstall arcgis or should I download 2.7.2 from the web?&amp;nbsp; It is weird that idle has 2.7.2 but I can't find where it is installed&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks[ATTACH=CONFIG]26215[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 15:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673551#M52088</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-07-25T15:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673552#M52089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am a little confused...If python 2.7.3 is indeed the version that came with your ArcGIS install, it should not ever fail when you import arcpy.&amp;nbsp; Mine came with 2.7.2 but those who have installed more recently may get 2.7.3.&amp;nbsp; I have no problems importing arcpy from the command window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Earlier, you said:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;It seems I have two versions of Idle. I think I installed the 2.7.3 by downloading and installing it by myself. I am not sure about the other version though. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So maybe if you installed this separately, it probably would have looked to see if you already had a Python27 folder, which you would have.&amp;nbsp; I am thinking that maybe it just installed this extra IDLE 2.7.3 inside the ArcGIS folder.&amp;nbsp; That may have overwritten some of the arcpy stuff because you seem to be missing a lot of things from your "site-packages" folder (compared to mine anyways).&amp;nbsp; I have installed quite a few third party modules, but you are missing numpy and some other stuff that comes with the ArcGIS python install.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is probably not what you want to hear, but you may have to uninstall ArcGIS and reinstall again to get the python folders in order...Before doing the reinstall, it may be a good idea to check to make sure that there is no Python27 folder left over after the uninstall.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am pretty much out of ideas.&amp;nbsp; Does anyone else know what could be going on here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 16:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673552#M52089</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-07-25T16:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673553#M52090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you got it Caleb. So should I delete that entire python folder before installing ArcGIS? Do you know if I need to reinstall the extensions? Should I delete anything from the registry to make sure that python version is really gone! Thank you Stacy and Caleb! You both helped me with this!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 19:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673553#M52090</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-07-25T19:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673554#M52091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is what I would do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Uninstall ArcGIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Delete the "C:\Python27" folder if it still exists after the uninstall&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Reinstall ArcGIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To answer your questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do not change anything in the registry; the new install should take care of everything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You do not have to "reinstall" the extensions, but rather just provide your license number for each extension.&amp;nbsp; Be sure to paste all of your license numbers in a text file before uninstalling.&amp;nbsp; Otherwise, I think Esri usually sends you an email with all the license numbers for your reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; I just noticed looking at your screenshots of your folders/PYTHONPATH again, something is definitely not right.&amp;nbsp; For instance, your "Lib" folder is not even inside of an ArcGIS folder.&amp;nbsp; The install of 2.7.3 definitely took over the folders that shipped with the ArcGIS install.&amp;nbsp; Now I am convinced the reinstall is your best bet.&amp;nbsp; Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 19:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673554#M52091</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-07-25T19:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673555#M52092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Caleb! I will do that and I will let you know how it goes! Thank you so much again! I love Python!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 20:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673555#M52092</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-07-25T20:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673556#M52093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ionara, Caleb is on the right track.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you need any Python other than the Arcpy one? If the Arcpy one is the only one you need you should also uninstall every Python and Python related thing you can find, so from your image of installed programs that is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;PyScripter 2.5.3&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Python 2.7 matplotlib-1.1.0&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Python 2.7 numpy-1.7.1&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Python 2.7 pywin32-218&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Python 2.7.3&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Python tools for Visual Studio 2010&lt;STRONG style="font-style: italic;"&gt; (only if you do not use this - if you don't know what it is, you can probably uninstall it)&lt;/STRONG&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;uninstall ArcGIS&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;delete Python27 folder, and any other Python folders (in local drives like C: or D:) if you have them&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;restart the computer&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;reinstall ArcGIS 10.1&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;install 10.1 Service Pack 1&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;This whole process will leave you with one single Python. Add this to the start of your system PATH (you have already done this, so maybe no change is required). Then if you need other libraries, i.e., &lt;/SPAN&gt;&lt;STRONG&gt;matplotlib&lt;/STRONG&gt;&lt;SPAN&gt; they should automatically install to that Python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need 64 bit background processing, install that, and make that your one and only Python (i.e. add it to the PATH instead of 32 bit and install 64 bit libraries to it only)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this sorts all your problems out!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 20:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673556#M52093</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2013-07-25T20:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673557#M52094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Stacy! Why do I need to uninstall all of them? (just curious) and how do I use the python 64? Basically, what is the advantage of using it and how do I choose that when running the scripts? Thanks!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 20:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673557#M52094</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-07-25T20:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673558#M52095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thank you Stacy! Why do I need to uninstall all of them?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am quite a fan of keeping everything as clean as possible, so I tend to uninstall/delete anything that I am not using. In your case it seems like the number of Pythons was adding to the overall confusion. As you can get by perfectly fine on just one, and thus avoid any future complications, I would strongly recommend doing so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;(just curious) and how do I use the python 64? Basically, what is the advantage of using it and how do I choose that when running the scripts? Thanks!!!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Do not install 64-bit background geoprocessing unless you really need to. &lt;/STRONG&gt;&lt;SPAN&gt;If you don't need it, but do install it, it will just be yet another Python in the way and adding to the confusion. To make use of 64-bit background geoprocessing your computer needs to have more than 4GB of RAM, less than this it won't solve any of your problems (not entirely true, but for most practical purposes it is accurate). Things that might indicate 64-bit background geoprocessing will help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;you frequently have Arc programs or scripts crash due to MemoryError&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;you do large operations, but have implemented a workflow of breaking your inputs into smaller parts to avoid crashes and instability&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;For me 64-bit background geoprocessing has been incredibly useful. I used to use Arcs 32-bit Python as my default and have a 64-bit Python installed to do non-GIS parts of some of my work. For some large workflows I would have scripts running one after the other that switched between these two, doing any non-GIS processing in the 64-bit Python, and each GIS script would have to be very carefully designed to break everything up into much smaller parts that could be handled by 32-bit. No longer having to worry about all this has saved a lot of time, and made everything a lot simpler to both write and maintain. Most GIS users won't have these issues; so, like I said above, don't bother unless you really need it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To choose the 64-bit Python when running scripts, you simply pass the script to the 64-bit python.exe rather than the old 32-bit one...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jul 2013 21:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673558#M52095</guid>
      <dc:creator>StacyRendall1</dc:creator>
      <dc:date>2013-07-28T21:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673559#M52096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Stacy! I don't need it yet, so I am not going to install it but it is good to know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 19:46:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673559#M52096</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-08-02T19:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: ImportError: No module named arcpy</title>
      <link>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673560#M52097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This post is just to let you know that I had the courage to uninstall ArcGIS and delete the Python folder (I also deleted all the python2.7 software, just keeping pyscripter and the tool for Visual Studio). I redid the exercise and everything worked like a charm so it was really a problem with having that other Python installation. Thank you so much for all your help!!!:D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 18:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/importerror-no-module-named-arcpy/m-p/673560#M52097</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2013-08-13T18:59:34Z</dc:date>
    </item>
  </channel>
</rss>

