not able to install presidio_analyzer ,presidio_anonymizer and spacy download en_core_web_lg model in Azure app service(python)

RaghavendraSC-9485 1 Reputation point
2022-05-24T10:41:53.99+00:00

Team,

I am trying to install presidio_analyzer ,presidio_anonymizer using PIP and also trying to install spacy model using python3.9 -m spacy download en_core_web_lg in Azure app service(python) through SSH. Its is installing but after some time its getting uninstalled on its own..

I am using below commands
pip install presidio_analyzer
pip install presidio_anonymizer
python3.9 -m spacy download en_core_web_lg
pip install presidio_image_redactor

I even change directory to home and tried to install there. But there also its same thing.
Need your valuable suggestions on this..

205067-azure-screeenshot.jpg

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,990 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2022-06-03T02:00:54.81+00:00

    Hi @RaghavendraSC-9485 ,

    I'm assuming you're letting Oryx run the build and install your requirements.txt file. Normally, your Python modules are installed inside a virtual environment, (antenv). You may not be shell'ing into the virtual environment and therefore not seeing the modules. The best way to know for sure if you're having missing modules is running your application and checking the log files for error messages related to missing modules.

    If you do happen to run into module errors, have a look at https://azure.github.io/AppService/2020/12/11/cicd-for-python-apps.html on how to configure your CI/CD yaml pipeline for a Python app.

    0 comments No comments

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.