Old pip version being used when deploying to app engine flexible

1,544 views
Skip to first unread message

Kush Goyal

unread,
Jun 11, 2019, 10:21:13 AM6/11/19
to Google App Engine
When I deploy to app engine flexible env I get the below warnings in red:

Step #1: You are using pip version 10.0.1, however version 19.1.1 is available.
Step #1: You should consider upgrading via the 'pip install --upgrade pip' command.


I am using python 3 on app engine flexible.

Is is possible to use the latest version of pip when deploying. My google sdk version is 249.0.0 and app engine python version is 1.9.85.

Nicolas (Google Cloud Platform Support)

unread,
Jun 11, 2019, 3:31:38 PM6/11/19
to Google App Engine

Hi Kush,


Thank you for reporting this,


Apparently there are some conflicts with the OS system version as reported here. One workaround for the moment would be to use your own custom runtime.


Also as your issue seems to be a specific technical issue you would have better assistance from the community by posting in StackOverflow as Google Groups is intended for general discussion


Gabriel Dumbrille

unread,
Apr 20, 2020, 8:25:29 AM4/20/20
to Google App Engine
Hi Kush,

I am having the same issue:

Step #2: You are using pip version 10.0.1, however version 20.0.2 is available.
Step #2: You should consider upgrading via the 'pip install --upgrade pip' comma
nd.

My requirements.txt file has pip==19.0 for my flask app...

How were you able to solve it? 

Emil

unread,
Apr 21, 2020, 7:01:00 AM4/21/20
to Google App Engine
Hi Gabriel,

As was proposed by Nicolas, if you need specific version of pip to install other dependancies, you can switch to custom environment and tweak Dockerfile to first update pip and then install other dependancies.
Otherwise this is just a warning and you can ignore it in most cases.

Vinayak Nayak

unread,
May 15, 2020, 8:02:49 AM5/15/20
to Google App Engine

Hello Kush!

I am trying to deploy a flask app on google cloud platform using their app engine functionality.The project builds fine but when it comes to installing the requirements using requirements.txt file, it just doesn't seem to work. Upto a point it installs the packages but after that it says pip10 is used instead of pip19 in installing the packages.


To overcome this, I forcefully added a pip==19.0 dependency in the requirements.txt file.


Next, I created a virtual environment and locally upgraded pip and then tried to gcloud app deploy but to no effect.


Here's a screenshot of the error message. I think we have the same error message. Can you tell me what did you do in order to fix it?

Screenshot from 2020-05-15 12-07-10.png

Thanks for reading and in anticipation of a solution.


With Regards,

Vinayak.

noverlyjoseph

unread,
May 15, 2020, 3:12:45 PM5/15/20
to Google App Engine
The SDK using an older version of Pip should no be a blockage from installing requirements from a requiremts.txt file.
If a package absolutely needs a version of pip to be installed that would be different, but usually this is not an issue.

Could you try to install those dependencies locally (in a virtual environment) running the same command? This could help you isolate the issue.

pip install -r requirements.txt
Reply all
Reply to author
Forward
0 new messages