Ask Your Question
1

ArcGIS Pro Conda

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

K_Williams gravatar image

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

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
0

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

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

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

2 followers

Stats

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

Seen: 53 times

Last updated: Aug 02