在azure函数app v2中的Kudu bash没有在root中显示函数目录而没有python 3.6 [英] Kudu bash in azure function app v2 not showing functions directories in root and not having python 3.6

查看:68
本文介绍了在azure函数app v2中的Kudu bash没有在root中显示函数目录而没有python 3.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在玩一个天蓝色的功能应用程序v2并进入Kudu的调试控制台(高级选项)我想检查哪里如果我可以从那个bash安装依赖项,但是发生了最奇怪的事情,那么函数就会被存储和存储。 

I was playing a little bit with an azure function app v2 and got to the debug console of Kudu (advanced options) I wanted to check where the functions are stored and wether if I could install dependencies from that bash but the strangest thing happened. 

1)当到达home / site / wwroot>并执行ls没有文件夹,没有文件!如果我是正确的,应该有我的函数文件夹(在这种情况下是一个HTTPTrigger函数,里面有我做的几个模块),但没有任何东西!清空
结果。这很奇怪,因为去portal.azure.com并检查函数应用程序时它确实有1个函数。

1) When getting to home/site/wwroot> and executing ls there are no folders, no files! If I am correct there should be folders with my functions (in this case an HTTPTrigger function with a couple of modules I made inside that), but nothing is there! Empty result. Which is strange since when going to portal.azure.com and checking the function app it indeed has 1 function inside.

2)当检查python版本时,我得到两个,python 2.7.13和python 3.5.3,是不是用python 3.6运行的函数?

2) When checking python versions I get two, python 2.7.13 and python 3.5.3, weren't the function run with python 3.6?

----------------问题完全与帖子无关title -----------------------

---------------- Question completely unrelated to the post and the title-----------------------

3)如何在azure函数应用程序中安装没有轮子的依赖项v2.0(我正在尝试安装pyodbc),我曾尝试使用Docker安装,但我得到了相同的文档(我至少已经看过)没有任何部分指定如何执行
it ,这里和那里有一些帖子和问题,但它们不适合我T_T 

3) How exactly do I install dependencies without wheels on an azure function app v2.0 (i'm trying to install pyodbc), I have tried to install with Docker but I get the same and there is no part of the docs (that I have seen at least) specifying how to do it, there are some posts and issues here and there but they are not working for me T_T 

这是我的文件夹结构(如果你需要的话)

This is my folder structure (in case you need it)

function_app

function_app

    httptriger1

    httptriger1

          __ init __。py

         __init__.py

          function.json(授权设置为匿名)

         function.json (with authorization set to anonymous)

          function1.py(由我制作)

         function1.py (made by me)

          simple.dat

         simple.dat

非常感谢高级!

推荐答案

Azure功能将运行仅限python 3.6。

Azure Function will run with python 3.6 only.

如果您没有  python 3.6,它将给出错误,如下所示 

If you do not have the python 3.6 , it will give error as shown below 

关于未显示的文件:
它将会不在bash中显示,因为它不是应用程序容器。

Regarding files not shown : It will not show in bash because it is not an application container.

< span style ="font-size:10.5pt; font-family:'Segoe UI',sans-serif">

如果您要创建自定义图像,那么您必须使用Web SSH仅限于v iew文件。  如果
是它的祝福图像,你可以使用Bash来查看文件

无论如何你需要发出命令

1)cd / home / site / wwwroot

2)ls-lrt


这篇关于在azure函数app v2中的Kudu bash没有在root中显示函数目录而没有python 3.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆