<?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: Share python tool as GP Service in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190186#M7566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may only be possible on Linux, and I also don't know if it applies to geoprocessing services:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://enterprise.arcgis.com/en/server/latest/administer/linux/linux-python.htm"&gt;http://enterprise.arcgis.com/en/server/latest/administer/linux/linux-python.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2019 19:13:18 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2019-03-27T19:13:18Z</dc:date>
    <item>
      <title>Share python tool as GP Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190182#M7562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I write a python tool in Pro it uses python 3&lt;/P&gt;&lt;P&gt;When I share it (as service or package) the server uses python 2.&lt;/P&gt;&lt;P&gt;What happens if I need to use python 3 functions or libraries?&lt;/P&gt;&lt;P&gt;see similar question here:&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/268056/run-python-3-scripts-on-arcgis-server-10-5"&gt;https://gis.stackexchange.com/questions/268056/run-python-3-scripts-on-arcgis-server-10-5&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 07:35:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190182#M7562</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2019-03-27T07:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Share python tool as GP Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190183#M7563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't know since I don't work in that environment, but there are documents and there is an anaconda distribution&lt;/P&gt;&lt;P&gt;based on python 3&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/deploying-custom-python-packages.htm" title="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/deploying-custom-python-packages.htm"&gt;Deploying custom Python packages for ArcGIS Server—Documentation | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 09:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190183#M7563</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-27T09:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Share python tool as GP Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190184#M7564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;Thanks for the answer but let me clarify my question.&lt;/P&gt;&lt;P&gt;I build a GP tool in Pro uses python 3 (this is what is used for pro).&lt;/P&gt;&lt;P&gt;It is not in anaconda it is GP tool.&lt;/P&gt;&lt;P&gt;Then I pack or publish it for the server.&lt;/P&gt;&lt;P&gt;Check this:&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000013224"&gt;https://support.esri.com/en/technical-article/000013224&lt;/A&gt;&amp;nbsp;The server use python 2 to run a tool that was written in python 3.&lt;/P&gt;&lt;P&gt;It is almost identical but still there is a few things in python 3 that will not work in python 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 09:15:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190184#M7564</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2019-03-27T09:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Share python tool as GP Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190185#M7565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I haven't used 2.7 in so long I can't remember which python modules or python functionality changed between the two ( like the obvious print, range etc)&lt;/P&gt;&lt;P&gt;Support for 2.7 is being dropped by a lot of things already or soon (ie numpy, scipy, pandas etc).&lt;/P&gt;&lt;P&gt;A specific example would help of what you are missing or what behaves differently to see if there is a simple workaround.&amp;nbsp; Anything on GitHub is pretty easy to get version different code (I do it all the time with numpy when ArcGIS distributed packages lag behind current needs or you want to support arcmap)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 09:34:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190185#M7565</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-27T09:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Share python tool as GP Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190186#M7566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may only be possible on Linux, and I also don't know if it applies to geoprocessing services:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://enterprise.arcgis.com/en/server/latest/administer/linux/linux-python.htm"&gt;http://enterprise.arcgis.com/en/server/latest/administer/linux/linux-python.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 19:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/share-python-tool-as-gp-service/m-p/190186#M7566</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-03-27T19:13:18Z</dc:date>
    </item>
  </channel>
</rss>

