Installation
Requirements
- Python: 3.10 or higher
- Operating System: Linux, macOS, or Windows
- Dependencies: None (gtext is standalone)
Install from PyPI
The recommended way to install gtext is from PyPI using pip:
Verify Installation
Check that gtext is installed correctly:
You should see output like:
Install from Source
If you want the latest development version or want to contribute:
1. Clone the Repository
2. Install in Development Mode
3. Install Development Dependencies
For running tests and building documentation:
# Install dev dependencies
pip install -e ".[dev]"
# Or install all dependencies (dev + docs)
pip install -e ".[all]"
Virtual Environment (Recommended)
It's recommended to use a virtual environment:
Using venv
# Create virtual environment
python -m venv venv
# Activate (Linux/macOS)
source venv/bin/activate
# Activate (Windows)
venv\Scripts\activate
# Install gtext
pip install gtext
Using conda
# Create conda environment
conda create -n gtext python=3.10
# Activate
conda activate gtext
# Install gtext
pip install gtext
Verify Installation with Test
Create a test file to verify gtext is working:
File: test.md.gtext
Run gtext:
Expected output:
Check that test.md was created with the same content.
Upgrading
To upgrade to the latest version:
Uninstalling
To remove gtext:
Troubleshooting
Command not found
If gtext command is not found after installation:
-
Check if pip bin directory is in PATH:
-
Reinstall with user flag (if not using virtual environment):
Permission errors
If you get permission errors during installation:
Python version issues
Ensure you're using Python 3.10 or higher:
If you have multiple Python versions, you may need to use:
Next Steps
Now that gtext is installed, proceed to the Quick Start Guide to learn how to use it.