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

chaos 21 Reputation points
2021-02-21T15:31:32.857+00:00

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 Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,975 questions
Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,665 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,421 Reputation points
    2021-02-22T10:36:47.417+00:00

    Hi @chaos

    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

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.