Computer >> Computer tutorials >  >> Programming >> Python

How I can install unidecode python module on Linux?


To install unidecode or any other python module you need pip installed(python package manager). If you have Python 2 >=2.7.9 or Python 3 >=3.4 installed from python.org, you will already have pip and setuptools, but will need to upgrade to the latest version:

On Linux or macOS:

pip install -U pip setuptools

On Windows:

python -m pip install -U pip setuptools

If you’re using a Python install on Linux that’s managed by the system package manager (e.g "yum", "apt-get" etc…), and you want to use the system package manager to install or upgrade pip, then see: https://packaging.python.org/guides/installing-using-linux-tools/

Otherwise:

Download get-pip.py from https://bootstrap.pypa.io/get-pip.py. Run python get-pip.py. This will install or upgrade pip.

Now you can use pip to install python packages. For example, To install the latest version of 'unidecode':

$ pip install 'unidecode'

To install a specific version:

$ pip install 'unidecode==0.04'

To install greater than or equal to one version and less than another:

$ pip install 'unidecode>=0,<1'