Toy prioritizer for climate actions
To set up a Python virtual environment and install the dependencies specified in the requirements.txt
file, follow these steps:
-
Open a terminal or command prompt.
-
Navigate to the project directory where the
requirements.txt
file is located. -
Create a new virtual environment by running the following command:
python -m venv .venv
This will create a new directory named
.venv
in your project directory, which will contain the virtual environment. -
Activate the virtual environment. The command to activate the virtual environment depends on your operating system:
-
On Windows:
.venv\Scripts\activate
-
On macOS and Linux:
source .venv/bin/activate
-
In VSCode Press CTLR + SHIFT + P > Select Interpreter > Select the created venv environment
Once activated, you should see
(venv)
or a similar indicator in your command prompt. -
-
Install the required packages by running the following command:
The script is using Python 3.12.4.
pip install -r requirements.txt
This will install all the packages listed in the requirements.txt
file into your virtual environment.
Use e.g. this example command
python prioritizer.py --city-file cities.csv --action-file actions.csv --output-file output.csv --quantitative --number-of-actions 5