Installation¶
This page provides detailed installation instructions for GPTChangelog.
Requirements¶
- Python 3.8 or higher
- Git (installed and in your PATH)
- OpenAI API key
Installing with pip¶
The recommended way to install GPTChangelog is using pip:
This will install GPTChangelog and all its dependencies.
Installing from Source¶
If you prefer to install from source, you can clone the repository and install it:
The -e
flag installs the package in "editable" mode, which is useful if you plan to modify the source code.
Dependencies¶
GPTChangelog depends on the following packages:
openai
: For interacting with OpenAI's APIgitpython
: For accessing git repository informationtiktoken
: For token counting and managementrich
: For beautiful terminal outputsetuptools
: For packaging utilities
These dependencies are automatically installed when you install GPTChangelog using pip.
Verifying Installation¶
To verify that GPTChangelog is installed correctly, run:
This should display the version number of GPTChangelog.
Setting Up Your Environment¶
OpenAI API Key¶
You'll need an OpenAI API key to use GPTChangelog. If you don't have one, you can get it from the OpenAI website.
You can configure your API key in two ways:
-
Through the configuration file (recommended):
-
Using an environment variable:
Troubleshooting¶
Common Installation Issues¶
Package not found
If you get a "command not found" error after installation, make sure your Python scripts directory is in your PATH.
Dependency conflicts
If you encounter dependency conflicts, try installing in a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install gptchangelog
Git not found
If you get an error about Git not being found, make sure Git is installed and in your PATH.
Getting Help¶
If you continue to experience issues, please:
- Check the GitHub issues to see if your problem has been reported
- Open a new issue if needed, providing details about your environment and the error messages