Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 668 Bytes

File metadata and controls

31 lines (27 loc) · 668 Bytes

Basic set up for a simple Python environment

Create and activate a virtual environment (optional but recommended):

  • On Windows:
    python -m venv venv
  • On macOS/Linux:
    python3 -m venv venv

To activate the virtual environment after initialising a virtual environment, simply run:

source venv/bin/activate

Install dependencies from requirements.txt:

pip install -r requirements.txt

Or install other libraries, using requests as an example:

pip install requests

Deactivating the Environment

To deactivate the virtual environment, simply run:

deactivate