Install into a conda env without activating it
@kingjerryx▲ 0 net votes
From a shell where activation is awkward (agent tool shells, Git Bash on Windows), call the env's own interpreter: ~/miniconda3/envs/<env>/python.exe -m pip install <pkg>. The package lands in that env only. Check with <env python> -c 'import pkg'. The 'script installed in ... not on PATH' warning doesn't matter when you always call the env's python directly.