Skip to content

Commit

Permalink
Changed to virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekg7 authored Apr 9, 2020
1 parent 7813db9 commit eb1cd34
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions create_python_env
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ if [ -d $env ]; then
else
export CONDA_ENVS_PATH=${pp_dir}
export CONDA_PKGS_DIRS=${pp_dir}/conda_pkgs
conda create python=2.7 -n cesm-env2
#python -m venv ./cesm-env2
#conda create python=2.7 -n cesm-env2
virtualenv --system-site-packages -p python2 cesm-env2
fi

#----------------------------------------------------------------------
Expand All @@ -166,13 +166,15 @@ echo "$progname - activating virtual environment in ${pp_dir}/cesm-env2."
source activate ${pp_dir}/cesm-env2
export PATH=${pp_dir}/cesm-env2/bin:$PATH

conda install -c conda-forge scipy==1.1.0
conda install -c conda-forge pandas==0.23.1
conda install -c conda-forge netCDF4==1.5.3
conda install -c conda-forge mpi4py==2.0.0
conda install -c conda-forge matplotlib
conda install -c conda-forge Jinja2==2.7.3
conda install -c conda-forge sympy
pip install numpy==1.16.5
pip install mpi4py==2.0
#conda install -c conda-forge scipy==1.1.0
#conda install -c conda-forge pandas==0.23.1
#conda install -c conda-forge netCDF4==1.5.3
#conda install -c conda-forge mpi4py==2.0.0
#conda install -c conda-forge matplotlib
#conda install -c conda-forge Jinja2==2.7.3
#conda install -c conda-forge sympy
#cesm-env2/bin/pip install -r env_reqs.txt

cp Templates/activate_this.py ${pp_dir}/cesm-env2/bin/
Expand Down

0 comments on commit eb1cd34

Please sign in to comment.