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,669 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,533 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful