Appearance
InfyGPT Python Local Setup
This guide provides a step-by-step process to set up InfyGPT on your local environment. While you can install it using both zip files, we recommend using the dist
file for a minimal setup process.
System Requirements
- Python 3.12+
- pip (bundled with Python 3.12+)
Environment Variables
Update your .env
file with the following configurations:
ini
PORT="Python server will be run on this PORT."
DB_HOST="Database Host"
DB_PORT="3306" # Modify as per your DB configuration
DB_DATABASE="Database Name"
DB_USERNAME="Database Username"
DB_PASSWORD="Database Password"
OPENAI_API_KEY="Your OpenAI API Key"
OPENAI_ORGANIZATION="Your OpenAI Organization ID"
Setting Up the Project
1. Create a Project Directory (If not already created)
sh
mkdir my_python_project
cd my_python_project
2. Create a Virtual Environment
sh
python -m venv venv
3. Activate the Virtual Environment
sh
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows
4. Install Dependencies
sh
pip install -r requirements.txt
5. Run the Server
sh
python -m app