1👍
Your problem is caused by an old pip on WebApp by default. You have two solutions:
-
Prefered: Do not use default Python on WebApps (I guess it’s a WebApp?), use a Python extension. They are up to date with latest pip and you can use Python 3.6.1:
https://blogs.msdn.microsoft.com/pythonengineering/2016/08/04/upgrading-python-on-azure-app-service/
-
Avoid this solution unless you have a specific reason to do so: Create a virtualenv with the default Python and update pip first (from a Kudu console it’s simple “pip install -U pip”
Source:stackexchange.com