Skip to content

UV

Getting Started > Installation > uv (current)


Install PDFMathTranslate via uv

What is uv? How to install it?

uv is an extremely fast Python package and project manager, written in Rust.
To install uv on your computer, please refer to this article.


Installation

  1. Python installed (3.10 <= version <= 3.12);

  2. Use the following command to use our package:

    pip install uv
    uv tool install --python 3.12 pdf2zh-next
    

After installation, you can start translation via the command line or WebUI.

Warning

If you see the error command not found: pdf2zh_next when running, please configure the environment variables as follows and try again:

Add the following to your ~/.zshrc:

export PATH="$PATH:/Users/Username/.local/bin"

Then restart your terminal

Enter the following in PowerShell:

$env:Path = "C:\Users\Username\.local\bin;$env:Path"

Then restart your terminal

Note

If you encounter any issues during use WebUI, please refer to Usage --> WebUI.

Note

If you encounter any issues during use command line, please refer to Usage --> Command Line.