set a conda environment with a python script code example
Example 1: create a virtual environment python conda
conda create -n yourenvname python=x.x anaconda
Example 2: how to make conda to use global packages
export PYTHONNOUSERSITE=0
conda create -n yourenvname python=x.x anaconda
export PYTHONNOUSERSITE=0