Select to view content in your preferred language

Recommendations to setup pyScripter (or other IDE) for ArcPro 2.9

1347
6
Jump to solution
02-28-2023 08:31 AM
JamesCrandall
MVP Frequent Contributor

I have had ArcPro installed on a Windows VM that also has an existing install of ArcGIS Desktop 10.8.1 and pyScripter.  Up to now I had been writting .py script sources to GP Tools and GP Services for ArcGIS 10.8 and need to move everything over to ArcPro/Enterprise.

 

Issue: how to setup the installation of pyScripter IDE to now use the Pro installed python 3.x and its libraries?  

Can this be done with envrionment settings in the pyScripter IDE?

Do we need to install a different IDE to write py scripts?

Do we need to uninstall ArcGIS 10.8?

Any info is much appreciated!

 

0 Kudos
1 Solution

Accepted Solutions
Clubdebambos
Frequent Contributor

Hi @JamesCrandall 

I use PyScripter for ArcGIS Pro. When you open PyScripter there is the Python symbol (blue and yellow), click that and select Setup Python Versions.

Clubdebambos_0-1677602714087.png

A window will appear, the second icon in is for adding an environment, click it and select the folder that contain the environment you wish to use. (folder that contains python.exe)

Clubdebambos_1-1677602809154.png

For example, I make a clone of the environment using ArcGIS Pro and place it on a shared drive. (You can point directly to the install version). From here, anyone that uses PyScripter can access the same environment that I am using. Once you have added the folder path to the window you can highlight it and press the run button, the first icon in the screenshot above, or double click the entry.

You will see the interpreter window update and you are good to go.

Clubdebambos_2-1677602919627.png

 

Its been a long time since I used ArcMap with PyScripter, so you might need to upgrade to 64bit PyScripter. I don't believe you will need to uninstall any components of ArcMap to get this to work though.

~ learn.finaldraftmapping.com

View solution in original post

6 Replies
Clubdebambos
Frequent Contributor

Hi @JamesCrandall 

I use PyScripter for ArcGIS Pro. When you open PyScripter there is the Python symbol (blue and yellow), click that and select Setup Python Versions.

Clubdebambos_0-1677602714087.png

A window will appear, the second icon in is for adding an environment, click it and select the folder that contain the environment you wish to use. (folder that contains python.exe)

Clubdebambos_1-1677602809154.png

For example, I make a clone of the environment using ArcGIS Pro and place it on a shared drive. (You can point directly to the install version). From here, anyone that uses PyScripter can access the same environment that I am using. Once you have added the folder path to the window you can highlight it and press the run button, the first icon in the screenshot above, or double click the entry.

You will see the interpreter window update and you are good to go.

Clubdebambos_2-1677602919627.png

 

Its been a long time since I used ArcMap with PyScripter, so you might need to upgrade to 64bit PyScripter. I don't believe you will need to uninstall any components of ArcMap to get this to work though.

~ learn.finaldraftmapping.com
JamesCrandall
MVP Frequent Contributor

Thank you for the detailed response!

0 Kudos
JamesCrandall
MVP Frequent Contributor

I think this got me setup with pyScripter.  Thanks for the screenshots, very helpful.  

0 Kudos
ShaunWalbridge
Esri Regular Contributor

You can still use PyScripter, but note that you'll need the x64 version since Pro and Enterprise 11 are both 64-bit only. To configure it, you'll need to tell PyScripter where your installation is, by selecting Run > Python Versions > Setup Python Versions. From that dialog, you'll want to navigate to the arcgispro-py3 folder, if you're using the default environment. For Pro, that might look like:

 

ShaunWalbridge_0-1677604593056.png

If you're doing this on the Server, you can similarly configure it to point at the Pro runtime included in Server, see https://enterprise.arcgis.com/en/server/latest/develop/windows/scripting-service-publishing-with-arc... for the paths.

There are many other IDEs also available like VSCode, but if you're comfortable with PyScripter it should work fine.

Cheers, Shaun

JamesCrandall
MVP Frequent Contributor

I hadn't thought to use VSCode!  Thank you for your input Shaun.

0 Kudos
JamesCrandall
MVP Frequent Contributor

I went ahead and just got pyScripter setup for now but will need to go back thru the VisualCode install... I got lost tyring to get the correct python install / extensions all setup but I would love to get this working since we do alot of other dev work in VisualCode and would be nice to just stick to one IDE.

0 Kudos