Activating conda environment from c# code (or what is the differences between manually opening cmd and opening it from c#?)
问题 I want to run a gpu accelerated python script on windows using conda environment (dlwin36). I’m trying to activate dlwin36 and execute a script: 1) activate dlwin36 2) set KERAS_BACKEND=tensorflow 3) python myscript.py If I manually open cmd on my machine and write:"activate dlwin36" it works. But when I try opening a cmd from c# I get: “activate is not recognized as an internal or external command, operable program or batch file.” I tried using the following methods: Command chaining: var