Skip to content

Python

To properly and safely install H-hat on your computer, you need to configure a Python virtual environment. You can choose between various packages, including venv, hatch, uv, pdm, and poetry. (1)

  1. Here we mentioned the most common ones, but there are plenty of other package and project managers. Choose the one that suits your needs.

After configuring it, activate it (each package has their own way to do it, please check it out before proceeding), and choose one of the methods below to install H-hat, Pypi or Source code (currently recommended):

Via Pypi

Note

hhat-lang library might be out-of-date compared to the source code method below.

This is the easiest, most straightforward and simplest way to install H-hat. On the terminal, with the virtual environment enabled, type:1

If you are using bash shell:

1
pip install hhat-lang .[all]

If you are using zsh shell:

1
pip install hhat-lang ".[all]"

Either the options above will install all the tools, features and a H-hat dialect called Heather so you can start learning and writing your own code.

Via source code recommended

Use the clone HTTPS link in the H-hat repository page and git clone it, using the terminal:

1
git clone https://github.com/hhat-lang/hhat_lang.git

This will create the hhat_lang/ folder with all the code content, where you can pip install through the editable mode:

If you are using bash shell:

1
pip install -e .[all]

If you are using zsh shell:

1
pip install -e ".[all]"

Note

This approach is meant to be used for those who want to modify the code.


  1. How to check which shell I am using