In my ubuntu environment (Azure Data Science VM), I have to use :
pip install --target=".python_packages/lib/site-packages" -r requirements.txt func azure functionapp publish <app> --build-native-deps
in order to successfully deploy Functions with torch.
" --build local" doesn't work in my case.