Skip to content

Commit

Permalink
fix: python env
Browse files Browse the repository at this point in the history
  • Loading branch information
smarcet committed Nov 15, 2024
1 parent 665df32 commit 66c2fc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
7 changes: 0 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
12 changes: 11 additions & 1 deletion scripts/setup_python_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66c2fc9

Please sign in to comment.