Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install pynini via python pip




pynini - Finite-state grammar compilation, it belongs to Classifiers:

- Environment :: Other Environment
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.10
- Topic :: Scientific/Engineering
- Topic :: Scientific/Engineering :: Artificial Intelligence
- Topic :: Scientific/Engineering :: Mathematics
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: Text Processing
- Topic :: Text Processing :: Linguistic

When you know about this project and you want to new install pynini to support your project or you get trouble as ModuleNotFoundError: No module named "pynini" or ImportError: cannot import name "pynini" in your project, let follow this tutorial to install pynini



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_pynini_env

- Active the virtual environment

test_pynini_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_pynini_env

- Active the virtual environment

source test_pynini_env/bin/active


Step 2: OK, now, let flow below content to start the installation pynini

To install pynini on Windows(CMD):

py -m pip install pynini

To install pynini on Unix/macOs:

pip install pynini


Step 3: If you want to install a specific pynini version, add ==<pynini version> to the end command line

Example:

pip install pynini==0.4.1                                                                          yanked


Please see the version list below table:

VersionReleased dateCommand
pynini 2.1.52022-02-03T22:20:29Windows:

py -m pip install pynini==2.1.5

Unix/macOs:

pip install pynini==2.1.5

pynini 2.1.42021-03-19T01:55:06Windows:

py -m pip install pynini==2.1.4

Unix/macOs:

pip install pynini==2.1.4

pynini 2.0.9.post2 yanked2019-12-16T20:33:17Windows:

py -m pip install pynini==2.0.9.post2                                                                          yanked

Unix/macOs:

pip install pynini==2.0.9.post2                                                                          yanked

pynini 0.4.4 yanked2016-07-04T15:25:08Windows:

py -m pip install pynini==0.4.4                                                                          yanked

Unix/macOs:

pip install pynini==0.4.4                                                                          yanked

pynini 0.4.3 yanked2016-07-04T15:05:20Windows:

py -m pip install pynini==0.4.3                                                                          yanked

Unix/macOs:

pip install pynini==0.4.3                                                                          yanked

pynini 0.4.2 yanked2016-07-04T08:31:14Windows:

py -m pip install pynini==0.4.2                                                                          yanked

Unix/macOs:

pip install pynini==0.4.2                                                                          yanked

pynini 0.4.1 yanked2016-07-04T08:28:32Windows:

py -m pip install pynini==0.4.1                                                                          yanked

Unix/macOs:

pip install pynini==0.4.1                                                                          yanked


Step 4: Otherwise, you can install pynini from local archives:

Download the distribution file from pynini-2.1.5.tar.gz or the specific pynini version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_pynini_downloaded_file>

On Unix/macOs:

pip install <path_to_pynini_downloaded_file>


List distribution:


Project link:

- Homepage