First time here? Check out the FAQ!
1

ArcGIS Pro Conda

I use Wing Pro to develop python scripts for ArcGIS Pro. It employs Anaconda but the way Esri implements it the activate.bat is within a folder in the Windows Program Files folder. So, the spaces in the path make it so the only way I can use it with Wing is via the command line option. Occasionally I get errors from this since the Python environment isn't technically activated. Is there a way to get around this?

K_Williams's avatar
36
K_Williams
asked 2021-07-28 19:10:12 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2021-07-29 08:30:38 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

It might work to activate the environment on the command line and start Wing from there and set the Python Executable in Project Properties to Default, so the activated environment is used. That does of course require quitting and restarting Wing for each different env, rather than just switching projects.

We'll try to fix the problem with spaces in the activate.bat full path -- it's a side effect of limitations in passing things in envs to batch scripts that we need to work around somehow. I'll increase the priority on this since it sounds like this isn't as rare as we thought.

Wingware Support's avatar
4k
Wingware Support
answered 2021-07-29 08:30:28 -0500, updated 2021-07-29 08:31:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer