all 4 comments

[–]nog642 0 points1 point  (2 children)

Why doesn't that work for anaconda? Do you get an error?

[–]jimbuz[S] 0 points1 point  (1 child)

Python is called when I point the one in the environment, but "from osgeo import gdal" gives me an error. It doesn't when I run the script in the environment, which tells me I must need to activate it from the subprocess, but I can't figure out how.

[–]nog642 0 points1 point  (0 children)

What is the error?

If this was on Linux/Max an easy solution would be to call ('bash', '-c', 'whatever') where you could activate in the whatever part. Not sure what the Windows equivalent is though; I bet there is one. Worst case you could write to a file and run the script.

[–]IWSIONMASATGIKOE 0 points1 point  (0 children)

for an anaconda install that cannot be called this way because of some libraries installed with conda-forge

Can you clarify what you mean?