How to Install kokoro-tts on Manjaro? (Python 3.13 Issues)

I am trying to install kokoro-tts on Manjaro, but I am hitting several problems. The package does not exist on PyPI, pipx install kokoro-tts fails, and installing from source breaks because transformers requires an older Python version. Since Manjaro currently ships Python 3.13, it looks like I need a separate Python 3.10–3.12 environment using pyenv or uv.

My questions are:

  1. Where is the recommended or common place on Manjaro to create virtual environments when using pyenv or uv? Should they stay inside my home directory (e.g., ~/venv, ~/.virtualenvs, or inside the project directory), or is there a more standard layout?

  2. After I install kokoro-tts inside that environment, how can I call it from anywhere without having to manually source the venv each time and only use it from that terminal session? Is there a preferred way on Manjaro to expose a virtualenv-installed CLI globally?

The preferred way is to keep it confined to your home directory.

Add its location to the $PATH variable in your ~/.zshrc and/or ~/.bashrc, depending on what shell you prefer. :backhand_index_pointing_down:

export PATH=/path/to/directory:$PATH

more simple : (install and) use uv and read the doc

# Using uv (recommended)
uv tool install git+https://github.com/nazdridoy/kokoro-tts

uv tool install install loader in home path ~/.local/bin

command in terminal is kokoro-tts

[project.scripts]
kokoro-tts = “kokoro_tts:main”

https://github.com/nazdridoy/kokoro-tts/blob/main/pyproject.toml#L36

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.