create a virtual environment using venv
:
python -m venv venv
Activate the virtual environment. Note that the command might differ based on your operating system.
For Windows:
venv\Scripts\activate
For macOS/Linux:
source venv/bin/activate
Install the required Python packages using pip
:
pip install -r requirements.txt
sudo apt install rubberband-cli
With the virtual environment activated, you can now run the UVicorn server. Use the following command:
uvicorn src.python_run.piper.test:app --reload
Now you can access the server on http://127.0.0.1:8000/docs
This command starts the Uvicorn server with automatic reloading enabled, so any changes you make to the code will automatically trigger a server restart.