I am using Windows 10 and I want to install openalpr and import the library to python.
However, after downloaded the Pre-compiled Windows binaries, I dont know how ti import alpr in python
I follow the instruction in OpenAlpr
I downloaded the openalpr-2.3.0-win-64bit.zip here and unzipped it.
Afterwards, I can run alpr
in command line but I cannot import it.
Can anyone teach me how I can import Openalpr in python. Thank you.
When you've downloaded the binary distribution, navigate to python
subdirectory and run python setup.py
. This would install OpenALPR as package, so then you would be able to import it from anywhere, not just from ALPR's directory.
Explaination: To be importable, it requires that the package you're trying to import been else:
python
PYTHONPATH
environment variable.pth
filessite-packages
dirsys.path
by handAnd when you run setup.py
script, it kicks distutils to properly copy package's distribution to site-packages
, thus adding it to your libs.
For more information, see setup.py usage and how import system works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With