Use `conda run` to get the activated environment variables instead of activation using shell scripts
See original GitHub issueThis is probably an oversight, looking at the code in EnvironmentActivationService.getActivatedEnvironmentVariablesImpl
, we seem to be using conda shell activation scripts to run python code. I guess this needs to be changed to use conda run
as well.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Python - Activate conda env through shell script
I use 'source command' to run the shell script, it works: source shell_script.sh.
Read more >activating conda environment in within a shell script
And when I run /bin/bash /etc/rc.local I get this error, and the conda environment fails to activate. CommandNotFoundError: Your shell has not ...
Read more >Managing environments
These activation scripts are how packages can set arbitrary environment variables that may be necessary for their operation. You can also use the...
Read more >I Finally Managed to Activate a Conda Environment in My ...
To initialize your shell, run $ conda init <SHELL_NAME> Currently supported shells are: - bash - fish - tcsh - xonsh - zsh...
Read more >Activating conda environment over SSH
To initialize your shell, run $ conda init <SHELL_NAME> Currently supported shells are: - bash - fish - tcsh - xonsh - zsh...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With latest bits, I did the following:
I don’t think there’s a good way to verify this other than to debug it.
This code path is used by jupyter to do things like start a kernel for a conda environment, so doing that would verify it isn’t broken.