This project demonstrates how to set up a local Python project with dependencies on local libraries.
-
Create a virtual environment at the root of the project:
python3 -m venv venv
-
Activate the virtual environment:
-
On Windows:
.\venv\Scripts\activate
-
On Unix or MacOS:
source venv/bin/activate
-
-
Install the local libraries:
pip install -e ./libs/shared1 pip install -e ./libs/shared2
-
Run the main script:
python projs/proj/bing.py
Remember to replace python3
and python
with the correct command for your Python 3 interpreter if it's named differently on your system.