docs

Installation

Install kemlang-py

Get kemlang-py running on your machine in under a minute. Pick the method that suits your workflow.

System requirements

Python3.10 or newer
Node.js14+ (npm method only)
OSmacOS · Linux · Windows
Disk~15 MB installed

Install via npm recommended

The fastest way - works on any machine with Node.js installed. Automatically installs Python dependencies.

bash
npm install -g kemlang-py

Verify it worked:

bash
kem version
output
KemLang 0.1.3

Install via pip

If you already have Python 3.10+ and prefer pip:

bash
pip install kemlang-py

Verify:

bash
kem version

Install from source

For contributors or if you want the latest unreleased changes:

bash
git clone https://github.com/sanketmuchhala/kemlang-py cd kemlang-py pip install -e .

The -e flag installs in editable mode - changes to the source are reflected immediately without reinstalling.

Troubleshooting

“kem: command not found”

  • npm - Run npm bin -g to find the global bin path and add it to your PATH.
  • pip - Run python -m site --user-base to find the user base, then add /bin to PATH.
  • Windows - Restart your terminal - PATH changes take effect on new sessions.

Permission errors on macOS / Linux

bash
# npm sudo npm install -g kemlang-py # pip pip install --user kemlang-py

Python version too old

kemlang-py requires Python 3.10+. Check your version:

bash
python3 --version

If you see Python 3.9 or earlier, upgrade via brew install python@3.11 (macOS) or sudo apt install python3.11 (Ubuntu).

Updating

Keep kemlang-py up to date:

bash
# npm npm update -g kemlang-py # pip pip install --upgrade kemlang-py