<?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 will not import into pythonwin in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-will-not-import-into-pythonwin/m-p/395665#M31255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python looks in the directories that are part of the module search path. These directories&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;are listed in the sys.path variable from the sys module.&amp;nbsp; To list where&amp;nbsp; the Python looks for modules, print out the value of the sys.path&amp;nbsp; variable. For example, type the following in pythonwin's interactive window:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys
print sys.path&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By default, arcpy's default location is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the path isn't there, try adding the path using the sys.path.append method.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; sys.path.append(r"C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 18:06:54 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-11T18:06:54Z</dc:date>
    <item>
      <title>arcpy will not import into pythonwin</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-will-not-import-into-pythonwin/m-p/395664#M31254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When i enter the import arcpy command in pythonwin I get this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "&amp;lt;interactive input&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ImportError: No module named arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me how to fix this issue? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 13:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-will-not-import-into-pythonwin/m-p/395664#M31254</guid>
      <dc:creator>jasonlewis2</dc:creator>
      <dc:date>2012-09-26T13:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy will not import into pythonwin</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-will-not-import-into-pythonwin/m-p/395665#M31255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Python looks in the directories that are part of the module search path. These directories&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;are listed in the sys.path variable from the sys module.&amp;nbsp; To list where&amp;nbsp; the Python looks for modules, print out the value of the sys.path&amp;nbsp; variable. For example, type the following in pythonwin's interactive window:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import sys
print sys.path&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By default, arcpy's default location is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the path isn't there, try adding the path using the sys.path.append method.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; sys.path.append(r"C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:06:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-will-not-import-into-pythonwin/m-p/395665#M31255</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T18:06:54Z</dc:date>
    </item>
  </channel>
</rss>

