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

How to install polyglot via python pip




polyglot - Polyglot is a natural language pipeline that supports massive multilingual applications., it belongs to Classifiers:

- Natural Language :: Indonesian
- Natural Language :: Italian
- Natural Language :: Japanese
- Natural Language :: Javanese
- Natural Language :: Korean
- Natural Language :: Latin
- Natural Language :: Latvian
- Natural Language :: Macedonian
- Natural Language :: Malay
- Natural Language :: Marathi
- Natural Language :: Norwegian
- Natural Language :: Panjabi
- Natural Language :: Persian
- Natural Language :: Polish
- Natural Language :: Portuguese
- Natural Language :: Portuguese (Brazilian)
- Natural Language :: Romanian
- Natural Language :: Serbian
- Natural Language :: Slovak
- Natural Language :: Slovenian

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



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_polyglot_env

- Active the virtual environment

test_polyglot_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_polyglot_env

- Active the virtual environment

source test_polyglot_env/bin/active


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

To install polyglot on Windows(CMD):

py -m pip install polyglot

To install polyglot on Unix/macOs:

pip install polyglot


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

Example:

pip install polyglot==14.11


Please see the version list below table:

VersionReleased dateCommand
polyglot 16.7.42016-07-03T20:05:40Windows:

py -m pip install polyglot==16.7.4

Unix/macOs:

pip install polyglot==16.7.4

polyglot 15.10.032015-10-03T22:18:30Windows:

py -m pip install polyglot==15.10.03

Unix/macOs:

pip install polyglot==15.10.03

polyglot 15.5.22015-05-01T12:14:36Windows:

py -m pip install polyglot==15.5.2

Unix/macOs:

pip install polyglot==15.5.2

polyglot 15.5.12015-05-01T12:11:40Windows:

py -m pip install polyglot==15.5.1

Unix/macOs:

pip install polyglot==15.5.1

polyglot 15.04.192015-04-20T04:16:30Windows:

py -m pip install polyglot==15.04.19

Unix/macOs:

pip install polyglot==15.04.19

polyglot 15.03.172015-03-17T04:22:22Windows:

py -m pip install polyglot==15.03.17

Unix/macOs:

pip install polyglot==15.03.17

polyglot 15.03.052015-03-05T23:58:15Windows:

py -m pip install polyglot==15.03.05

Unix/macOs:

pip install polyglot==15.03.05

polyglot 15.032015-03-03T03:18:04Windows:

py -m pip install polyglot==15.03

Unix/macOs:

pip install polyglot==15.03

polyglot 14.112014-09-08T21:00:01Windows:

py -m pip install polyglot==14.11

Unix/macOs:

pip install polyglot==14.11


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_polyglot_downloaded_file>

On Unix/macOs:

pip install <path_to_polyglot_downloaded_file>


List distribution:


Project link:

- Homepage