#1868: set up users to run update.py

opened by njr2128

Identify all requirements and dependencies (e.g., installing python 2.7 or 3.7)


njr2128 commented:

Updating python and pip:

sudo apt install python3.8 sudo apt install python3-pip sudo apt update


njr2128 commented:

then

python3.8 -m pip install pandas python3.8 -m pip install lxml python3.8 -m pip install bs4

run pip under 3.8


njr2128 commented:

to get manuscript-object within manuscript-object

git submodule update --init --recursive


njr2128 commented:

FOR FUTURE: To run update.py, always make sure you are in manuscript-object submodule, in MASTER branch (it will often just go to last commit), and then separately git pull / git fetch manuscript-object


njr2128 commented:

Then to run update.py, run:

git checkout master git pull --recurse-submodules


gschare commented:

To use virtual environments (do this BEFORE installing packages): Go to your project directory. python3.8 -m pip install --user virtualenv python3.8 -m virtualenv .venv (here, .venv is the name of the folder where we will keep our virtual environment. You can name it whatever you want) source .venv/bin/activate Now you're in the virtual environment and you can use python3.8 -m pip install [PACKAGENAME] to install packages in the virtual environment. Type deactivate to exit out of the virtual environment.