Installation

Aspose.OCR for Python via Java is distributed as a Python Wheel (whl). The package contains all the files necessary for installing and running the library.

Preparing for installation

  1. Before you go any further, make sure you have the supported version of Python and that it is available from the command line. You can check this by running:

    You should get the response like Python <version number>. If you do not have Python, or have an unsupported version, install the latest 3.x version from python.org.

  2. Check that the package installer for Python (pip) is available:

    If you installed Python with an installer from python.org or via Homebrew, you should already have pip. If you installed Python using your OS package manager, you may have to install pip separately.

  3. Update pip, setuptools, and wheel to the latest versions:

    pip install --upgrade pip setuptools wheel
    

Installing the package

The Aspose.OCR for Python via Java package can either be installed from PyPi or downloaded from releases.aspose.com.

Installing from PyPi

pip is the recommended installer. To install the package, run the following command:

pip install aspose-ocr-python-java

Installing from downloaded package

  1. Download Aspose.OCR for Python via Java package for your platform from releases.aspose.com.

  2. Extract the downloaded archive.

  3. Install the downloaded package by running install.sh or install.cmd depending on your platform, or using pip:

    pip install aspose_ocr_python_java-{version and platform}.whl
    

Updating

The update procedure depends on how you originally installed the Aspose.OCR for Python via Java package.

Getting an update from PyPi

To update the main package, run the following command:

pip install --upgrade aspose-ocr-python-java

Updating with downloaded file

  1. Download the new version of Aspose.OCR for Python via Java package for your platform from releases.aspose.com.

  2. Extract the downloaded archive.

  3. Update the downloaded package by running update.sh or update.cmd depending on your platform, or using pip:

    pip install --upgrade aspose_ocr_python_java-{version and platform}.whl