I am looking for a way to convert geo-processing services to run on python3; any tips on how should I proceed?
@JuliettKilo ,
If you have ArcGIS Pro installed on your pc, you already have python 3 which you can run with Jupyter Notebook. If you only have ArcMap, it only offers python 2 and can not run tools with python 3.
The following link explains migration from ArcMap to ArcGIS Pro and python upgrade:
https://pro.arcgis.com/en/pro-app/2.8/arcpy/get-started/python-migration-for-arcgis-pro.htm
I think you must republish, otherwise the server is running it in python2.
Upgrading a python tool from ArcMap to Pro should be very easy, the code is very similar if not identical.
Then you republish and the server mark it as a python 3 service.
Server 10.5 is old but I think it is supporting publishing from Pro.
Have fun
ArcGIS Server includes Python 2.7 for Windows 64 bit. At ArcGIS Enterprise 10.5 and later, a Python 3-based conda environment is included with ArcGIS Server.
The following link provide more detail in regard to publishing geoprocessing services:
https://enterprise.arcgis.com/en/server/latest/publish-services/windows/deploying-custom-python-packages.htm#:~:text=ArcGIS%20Server%20includes%20Python%202.7,such%20as%20numpy%20and%20matplotlib.
@MehdiPira1
I have been developing my gp services using ArcMap (python 2.x) and I just upgraded to ArcGIS Pro (python 3).
I am looking for the possible ways not re-publish the existing gp services.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.