Web应用程序出现“不可写”错误

时间:2019-03-26 16:52:41

标签: python anaconda plotly-dash

我正在尝试使用anaconda在python中制作一个Web应用程序,但是每次我发现“不可写”错误。谁能指导我如何使用anaconda或任何其他python框架? 谢谢

from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
    return "Hello, World!"

if __name__ == "__main__":
    app.run() 


Traceback (most recent call last):

  File "<ipython-input-2-adef538a8dbc>", line 8, in <module>
    app.run()

  File "C:\Users\Hussnain\Anaconda3\lib\site-packages\flask\app.py", line 938, in run
    cli.show_server_banner(self.env, self.debug, self.name, False)

  File "C:\Users\Hussnain\Anaconda3\lib\site-packages\flask\cli.py", line 629, in show_server_banner
    click.echo(message)

  File "C:\Users\Hussnain\Anaconda3\lib\site-packages\click\utils.py", line 259, in echo
    file.write(message)

UnsupportedOperation: not writable

0 个答案:

没有答案