Installation
Aspose.OCR for Python via .NET is distributed as a Python Wheel (whl). The package contains all the files necessary for installing and running the library.
Preparing for installation
-
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. -
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.
-
Update pip, setuptools, and wheel to the latest versions:
pip install --upgrade pip setuptools wheel
Installing the package
The Aspose.OCR for Python via .NET 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-net
Updating
The update procedure depends on how you originally installed the Aspose.OCR for Python via .NET package.
Getting an update from PyPi
To update the main package, run the following command:
pip install --upgrade aspose-ocr-python-net
Updating with downloaded file
-
Download the new version of Aspose.OCR for Python via .NET package for your platform from releases.aspose.com.
-
Extract the downloaded archive.
-
Update the downloaded package by running update.sh or update.cmd depending on your platform, or using pip:
pip install --upgrade aspose_ocr_python_net-{version and platform}.whl