タイトル通りVisualstudio2015で python flask が実行できません
Visualstudio2015より新規作成>プロジェクト>python>flask web projectより新しいプロジェクトを作成後実行しようとしてもできません
views.pyのコードをみると
python
1""" 2Routes and views for the flask application. 3""" 4 5from datetime import datetime 6from flask import render_template 7from LineBot_KCDE_ import app 8 9@app.route('/') 10@app.route('/home') 11def home(): 12 """Renders the home page.""" 13 return render_template( 14 'index.html', 15 title='Home Page', 16 year=datetime.now().year, 17 ) 18 19@app.route('/contact') 20def contact(): 21 """Renders the contact page.""" 22 return render_template( 23 'contact.html', 24 title='Contact', 25 year=datetime.now().year, 26 message='Your contact page.' 27 ) 28 29@app.route('/about') 30def about(): 31 """Renders the about page.""" 32 return render_template( 33 'about.html', 34 title='About', 35 year=datetime.now().year, 36 message='Your application description page.' 37 )
となっていて
python
1from flask import render_template
のflaskに破線がついていてビルドすると
No Python environments are configured. Please install or configure an environment and try again. See http://go.microsoft.com/fwlink/?LinkID=299429 for information on setting up a Python environment.
とでています
どうすればエラーが消えるでしょうか?
エラーのサイトにとんでみたのですが何をDLすればいいのかわかりませんでした
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/08/21 11:37