Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在应用程序引擎上部署Python应用程序导致错误500_Python_Google App Engine_Google Cloud Platform_Plotly Dash - Fatal编程技术网

在应用程序引擎上部署Python应用程序导致错误500

在应用程序引擎上部署Python应用程序导致错误500,python,google-app-engine,google-cloud-platform,plotly-dash,Python,Google App Engine,Google Cloud Platform,Plotly Dash,我想用Google app Engine部署我的Python应用程序。它在谷歌云外壳上本地工作。但是使用命令googleappdeploy生成的URL,我得到了错误500。在日志中,我可以看到: import Dash No module named dash 但是,我已经使用命令pip install dash安装了这个模块。 我的Python应用程序使用2.7版 导入破折号 将仪表板核心组件作为dcc导入 将dash_html_组件导入为html 导入plotly.graph_objs作为

我想用Google app Engine部署我的Python应用程序。它在谷歌云外壳上本地工作。但是使用命令
googleappdeploy
生成的URL,我得到了错误500。在日志中,我可以看到:

import Dash
No module named dash
但是,我已经使用命令
pip install dash
安装了这个模块。 我的Python应用程序使用2.7版

导入破折号
将仪表板核心组件作为dcc导入
将dash_html_组件导入为html
导入plotly.graph_objs作为go
进口大熊猫
df=pandas.read_csv('abc.csv')#csv文件数据集
df.head()
classes=df['Class'].unique()
app=dash.dash()
app.layout=html.Div([
#布局部分
#功能部件
如果uuuu name uuuuuu='\uuuuuuu main\uuuuuuu':
app.run_服务器(debug=True,host='127.0.0.4')
破折号不是最常见的


您需要遵循,或者切换到。

将破折号添加到requirements.txt并运行命令
pip install-r requirements.txt
@frankegoesdown Python 2.7运行时不使用
requirements.txt