Follow these steps to set up a virtual environment and install dependencies for MassQLab. (Or see Quickstart)
Option A: Clone with Git
(Requires Git to be installed)
git clone https://github.com/JohnsonDylan/MassQLab.git
cd MassQLabOption B: Download ZIP from GitHub
- Go to github.com/JohnsonDylan/MassQLab
- Click the green "Code" button → "Download ZIP"
- Extract the ZIP and open a command prompt in the extracted
MassQLabfolder
Run:
py --listMake sure Python 3.9 is listed. If not:
- Install Python 3.9 from: https://www.python.org/downloads/
- During installation, check the box "Add Python to PATH"
If you get an error, Python may not be installed or not added to your system path.
Ensure virtualenv is installed
pip install virtualenvNavigate to the project directory:
cd path\to\MassQLabCreate and activate the virtual environment:
py -3.9 -m venv env
env\Scripts\activateYou should now see (env) at the start of your terminal prompt.
Ensure Anaconda is installed https://www.anaconda.com/docs/getting-started/anaconda/install
Navigate to the project directory:
cd path\to\MassQLabCreate and activate the conda environment:
conda create -n env python=3.9
conda activate envYou should now see (env) at the start of your terminal prompt.
The following may be sufficient:
pip install jupyterlab massql reportlab openpyxl matplotlib pyopenmsOtherwise use:
pip install -r requirements.txtYou're now ready to use the notebooks in notebooks/ or run the workflow using provided scripts.