I\'m trying to activate my conda env via a bash script. Even though the script runs fine and my PATH appears to be changed within the script, it\'s getting reset somehow aft
I have found the following to work on Mac OSX running a bash shell:
#!/bin/bash source /Users/yourname/anaconda/bin/activate your_env python --version # example way to see that your virtual env loaded as expected
Make sure you make the scripted executable with:
chmod +x yourscript.bash