log in python conda environment from terminal code example
Example 1: new env in conda
conda create --name myenv
Example 2: activate conda with source
#!/bin/bash
source /Users/yourname/anaconda/bin/activate your_env
python --version # example way to see that your virtual env loaded as expected