Arcpy to exe

1186
1
Jump to solution
11-13-2021 05:58 PM
DriveBall
New Contributor II

Hey everyone,

I am experiencing now with making stand-alone python scripts.
I have wondered if I could make an executable file that will work on computers without ArcGIS Pro installed.

Tried to use auto-py-to-exe with not much success.
I'd like to know if anyone has experience with compiling Arcpy python files.

currently using ArcGIS Pro 2.5

Thanks 🙂

1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

No.  Any script that requires something that uses a Pro license will fail (eg.  arcpy).  You can't just copy stuff, move it to a new machine and hope it work.  Verification of  whether the license is legitimate goes quite deep.

You can however use the "arcgis" module in scripts, but the functionality will be limited to that not requiring arcpy (etc).  Some geometry functionality can be substituted by "shapely" and other packages.


... sort of retired...

View solution in original post

1 Reply
DanPatterson
MVP Esteemed Contributor

No.  Any script that requires something that uses a Pro license will fail (eg.  arcpy).  You can't just copy stuff, move it to a new machine and hope it work.  Verification of  whether the license is legitimate goes quite deep.

You can however use the "arcgis" module in scripts, but the functionality will be limited to that not requiring arcpy (etc).  Some geometry functionality can be substituted by "shapely" and other packages.


... sort of retired...