Identify all requirements and dependencies (e.g., installing python 2.7 or 3.7)
Updating python and pip:
sudo apt install python3.8 sudo apt install python3-pip sudo apt update
then
python3.8 -m pip install pandas python3.8 -m pip install lxml python3.8 -m pip install bs4
run pip under 3.8
to get manuscript-object within manuscript-object
git submodule update --init --recursive
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
Then to run update.py, run:
git checkout master git pull --recurse-submodules
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.