diff --git a/requirements.txt b/requirements.txt index 8c243aa3e..e69de29bb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +0,0 @@ -MySQL-python==1.2.5 -nltk==3.2.4 -pandas==0.20.2 -python-dateutil==2.6.0 -scikit-learn==0.18.2 -scipy==0.19.1 -sklearn==0.0 diff --git a/scripts/setup_python_env.sh b/scripts/setup_python_env.sh index 29ec248dc..b1c360ea0 100755 --- a/scripts/setup_python_env.sh +++ b/scripts/setup_python_env.sh @@ -17,15 +17,25 @@ ROOT_DIR=$PWD; echo "installing python virtual env..."; + if [[ -f "$ROOT_DIR/requirements.txt" ]]; then echo "found requirements.txt files"; # install virtual env echo "creating py venv" - python -m venv env + python3 -m venv env source $ROOT_DIR/env/bin/activate; + cd $ROOT_DIR && pip install --upgrade pip cd $ROOT_DIR && pip install --upgrade setuptools + cd $ROOT_DIR && pip install --upgrade python-dateutil + cd $ROOT_DIR && pip install --upgrade mysqlclient + cd $ROOT_DIR && pip install --upgrade pandas + cd $ROOT_DIR && pip install --upgrade numpy + cd $ROOT_DIR && pip install --upgrade scikit-learn + cd $ROOT_DIR && pip install --upgrade nltk + cd $ROOT_DIR && pip install --upgrade scipy + cd $ROOT_DIR && pip install --upgrade sklearn # install dependencies $ROOT_DIR/env/bin/python env/bin/pip install -r requirements.txt;