Kudu extensions are not available in Comusumption Plan features. However, you can upgrade pip to be able to correctly install all your dependencies:
- Create your Python script for functions (say NameOfMyFunction / run.py)
- Open Kudu Console
- Go to the folder where your script is located (should be d: / home / site / wwwroot / NameOfMyFunction)
- Create virtualenv in this folder (python -m virtualenv myvenv)
- Download this venv (cd myenv / Scripts and call activate.bat)
Your shell should now have a prefix (myvenv)
- Update pip (python -m pip install -U pip)
- Install what you need (python -m pip install flask)
Now in the Azure portal in the script, update sys.path to add this venv:
import sys, os.path sys.path.append(os.path.abspath(os.path.join(os.path.dirname( __file__ ), 'myvenv/Lib/site-packages')))

Now you can start what you want.
(Link: https://github.com/Azure/azure-sdk-for-python/issues/1044 )
Edit: After reading the previous comment, it seems you need numpy. I just tested right now and I was able to install 1.12.1 without any problems.
Laurent mazuel
source share