add environment variable anaconda mac code example Example: how to create a virtual environment in anaconda conda create -n env_name python=x.x anaconda