<?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: File Location of ArcGIS API for Python? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251582#M8311</link>
    <description>&lt;P&gt;Thank you for this information!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2023 20:38:40 GMT</pubDate>
    <dc:creator>AllenDailey1</dc:creator>
    <dc:date>2023-01-25T20:38:40Z</dc:date>
    <item>
      <title>File Location of ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251528#M8307</link>
      <description>&lt;P&gt;Please help... I have done so many google searches for this and... nothing.&amp;nbsp; Whyyyy?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What is the file/directory location or path of the ArcGIS API for Python&lt;/STRONG&gt;, particularly on an ArcGIS Server?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having extremely mysterious failure with a standalone script that is trying to use the API to stop services, so I want to find some way to check if the API really exists on this server where I'm running the script.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 19:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251528#M8307</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2023-01-25T19:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: File Location of ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251557#M8308</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcgis
print(arcgis.__file__)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1674677724088.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61254iF8C39E08E21CC13C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1674677724088.png" alt="jcarlson_1-1674677724088.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 20:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251557#M8308</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-01-25T20:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: File Location of ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251567#M8309</link>
      <description>&lt;P&gt;I am using 10.9.1 Server and so &lt;A href="https://enterprise.arcgis.com/en/server/10.9.1/develop/windows/scripting-service-publishing-with-arcpy.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/server/10.9.1/develop/windows/scripting-service-publishing-with-arcpy.htm&lt;/A&gt; says where python lives and I can do this&lt;/P&gt;&lt;LI-CODE lang="python"&gt;'C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\Scripts\propy.bat'
&amp;gt;&amp;gt;&amp;gt; import arcgis
&amp;gt;&amp;gt;&amp;gt; arcgis.__file__
'C:\\Program Files\\ArcGIS\\Server\\framework\\runtime\\ArcGIS\\bin\\Python\\envs\\arcgispro-py3\\lib\\site-packages\\arcgis\\__init__.py'
&amp;gt;&amp;gt;&amp;gt; arcgis.__version__
'1.9.1'
&lt;/LI-CODE&gt;&lt;P&gt;Other versions of python might live on your server, on mine, there is C:\Python27\ for example, which shows this,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;C:\Python27\ArcGISx6410.9\python.exe
Python 2.7.18.4 (default, Sep 22 2021, 18:34:14) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt; import arcgis
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
ImportError: No module named arcgis&lt;/LI-CODE&gt;&lt;P&gt;I assume some ancient creaky Esri installer used python 2 and then it just lives on forever.&lt;/P&gt;&lt;P&gt;You can look at all the places searched for modules,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;gt;&amp;gt;&amp;gt; import sys
&amp;gt;&amp;gt;&amp;gt; for p in sys.path:
...   print(p)
...

C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcPy
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python37.zip
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\DLLs
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\lib
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\lib\site-packages
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcToolbox\Scripts
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\lib\site-packages\future-0.18.2-py3.7.egg
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\lib\site-packages\pytz-2020.1-py3.7.egg
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\lib\site-packages\pywin32_ctypes-0.2.0-py3.7.egg
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\lib\site-packages\pywin32security
C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\lib\site-packages\sympy-1.5.1-py3.7.egg&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 20:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251567#M8309</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2023-01-25T20:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: File Location of ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251580#M8310</link>
      <description>&lt;P&gt;Thank you so much!&amp;nbsp; Whoops, it had not occurred to me to do something like that.&amp;nbsp; It worked!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 20:37:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251580#M8310</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2023-01-25T20:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: File Location of ArcGIS API for Python?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251582#M8311</link>
      <description>&lt;P&gt;Thank you for this information!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 20:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/file-location-of-arcgis-api-for-python/m-p/1251582#M8311</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2023-01-25T20:38:40Z</dc:date>
    </item>
  </channel>
</rss>

