Use custom command / script to launch Conda environment
0
votes
0
answers
104
views
I made a small script
ca.sh
to activate a specific Conda environment so I don't have to repeatedly type out conda activate my_env
. The script is executable and in a directory in the $PATH.
#!/bin/bash
conda activate airbyte
When I run it, it gives the error
CondaError: Run 'conda init' before 'conda activate'
How do I get my script to activate the Conda environment in the current working directory? I'm running Ubuntu Linux.
Asked by ahron
(434 rep)
Jan 1, 2025, 05:08 AM