Upgrading Pip Version in the deployed Azure Function App

Nathan Sundararajan 1 Reputation point
2022-10-19T21:05:03.28+00:00

0

I have an Azure function App deployed. I upgraded my local pip version from 20.2.3 to 22.3. Now when I deployed new version, I'm getting this warning from vscode. How can I upgrade pip version. Need some help.

WARNING: You are using pip version 20.2.3; however, version 22.3 is available. You should consider upgrading via the '/tmp/oryx/platforms/python/3.9.7/bin/python3.9 -m pip install --upgrade pip' command.

Not sure how to run the command like where to login and execute to upgrade the pip any suggestions?

Here is more detailed output... [20:18:00+0000] Successfully built pyodbc WARNING: You are using pip version 20.2.3; however, version 22.3 is available. You should consider upgrading via the '/tmp/oryx/platforms/python/3.9.7/bin/python3.9 -m pip install --upgrade pip' command.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,196 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 11,536 Reputation points MVP
    2022-10-20T04:00:32.973+00:00

    Hello @Nathan Sundararajan

    The following...

    | WARNING: You are using pip version 20.2.3; however, version 22.3 is available.

    isn't an error and would not prevent your site from being deployed and running.

    You won't be able to upgrade the pip of your webapp because you will not have access to system files.
    Instead you can upgrade pip of your virtualenv, which you can do by adding a line in deploy.cmd file before install requirements.txt command.

    env\scripts\python -m pip install --upgrade pip  
    

    Remember not to upgrade pip with pip (env/scripts/pip) else it will uninstall global pip.
    https://stackoverflow.com/questions/34692370/using-pip-in-a-azure-webapp/41843617#41843617

    If you think your question has been answered, click "Mark as Accept Answer" if just helped click "Vote as helpful". This can be beneficial to other community members reading this forum thread.


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.