<?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 Unable to specify a Python environment for a single geoprocessing service in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-specify-a-python-environment-for-a/m-p/1208062#M7694</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to clone the python environment on ArcGIS Server (10.9), add custom libraries to it and finally specify the environment to a single gp service.&lt;/P&gt;&lt;P&gt;I have referred to the following link to achieve this (&lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/deploying-custom-python-packages.htm#" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/publish-services/windows/deploying-custom-python-packages.htm#)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, when I change the "condaEnvironmentPath" to the specified path (eg: "&lt;SPAN&gt;C:\\Program Files\\ArcGIS\\Server\\framework\\runtime\\ArcGIS\\bin\\Python\\envs\\deploy"), it automatically changes the initial part of the path to "${AGSSEREVER}". Please refer to the image below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MariamJamilah_1-1661934119436.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49926i5839BE489252B898/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MariamJamilah_1-1661934119436.png" alt="MariamJamilah_1-1661934119436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Due to this, I feel the gp service is not picking up the right environment and hence when I run the gp service, I get an error stating the custom libraries/modules are not found.&lt;/P&gt;&lt;P&gt;Please advise on how to proceed further and resolve this issue.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 08:24:22 GMT</pubDate>
    <dc:creator>MariamJamilah</dc:creator>
    <dc:date>2022-08-31T08:24:22Z</dc:date>
    <item>
      <title>Unable to specify a Python environment for a single geoprocessing service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-specify-a-python-environment-for-a/m-p/1208062#M7694</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to clone the python environment on ArcGIS Server (10.9), add custom libraries to it and finally specify the environment to a single gp service.&lt;/P&gt;&lt;P&gt;I have referred to the following link to achieve this (&lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/deploying-custom-python-packages.htm#" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/publish-services/windows/deploying-custom-python-packages.htm#)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, when I change the "condaEnvironmentPath" to the specified path (eg: "&lt;SPAN&gt;C:\\Program Files\\ArcGIS\\Server\\framework\\runtime\\ArcGIS\\bin\\Python\\envs\\deploy"), it automatically changes the initial part of the path to "${AGSSEREVER}". Please refer to the image below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MariamJamilah_1-1661934119436.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49926i5839BE489252B898/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MariamJamilah_1-1661934119436.png" alt="MariamJamilah_1-1661934119436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Due to this, I feel the gp service is not picking up the right environment and hence when I run the gp service, I get an error stating the custom libraries/modules are not found.&lt;/P&gt;&lt;P&gt;Please advise on how to proceed further and resolve this issue.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 08:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-specify-a-python-environment-for-a/m-p/1208062#M7694</guid>
      <dc:creator>MariamJamilah</dc:creator>
      <dc:date>2022-08-31T08:24:22Z</dc:date>
    </item>
  </channel>
</rss>

