Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 944 Bytes

File metadata and controls

62 lines (41 loc) · 944 Bytes

Python Ollama Integration

A Python application for interacting with Ollama's local LLM services.

Prerequisites

  • Python 3.8 or higher
  • Ollama installed and running on your machine
  • pip (Python package installer)

Installation

  1. Clone the repository
git clone https://github.com/felipefontoura/deepseek-local.git
cd deepseek-local/python
  1. Create and activate virtual environment

On Windows:

python -m venv .venv
.venv\Scripts\activate

On macOS/Linux:

python3 -m venv .venv
source .venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt

Usage

  1. Run Ollama Server:
ollama server
  1. Run the main application:
python main.py

Troubleshooting

Common issues and solutions:

  • Ensure Ollama is running before starting the application
  • Check if all required dependencies are installed
  • Verify Python version compatibility