Ask Your Question

ArcGIS Pro Conda

asked 2021-07-28 19:10:12 -0600

K_Williams's avatar

updated 2021-07-29 08:30:38 -0600

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-07-29 08:30:28 -0600

updated 2021-07-29 08:31:13 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2021-07-28 19:10:12 -0600

Seen: 256 times

Last updated: Aug 02 '21