question

chaos-4739 avatar image
0 Votes"
chaos-4739 asked MayankBargali-MSFT edited

How to add azure-ai-formrecognizer --pre to requirements.txt

Hi there, I am developing a python program with azure formrecognizer API. The program will be run and accessed via Azure functions. I used the formrecognizer version V2.1, which supports the analysis of business card.

When I put azure-ai-formrecognizer --pre in the requirments.txt it cannot be recognized by pip(only azure-ai-formrecognizer is able to be imported). I have to install it manually by pip install azure-ai-formrecognizer --pre. I can do that on my machine, but what I want is deploying this program on Azure functions, where I have to resolve the dependency via requirements.txt.

How can I solve this problem? Many thanks in advance!

pip version:20.1.1
python version 3.8

azure-functionsazure-form-recognizer
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

Hi @chaos-4739

Welcome to Microsoft Q&A! Thanks for posting the question.
You need to define as below in your requirements.txt file. You can find the pre-release version here: https://pypi.org/project/azure-ai-formrecognizer/#history
The latest pre release version is 3.1.0b3

azure-ai-formrecognizer==3.1.0b3

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.