So I was running a flask-based web app on my local machine and everything was going just fine. Then, I mistakenly run a setup script which I've previously created within my app folder. And now my server wouldn't run and my cmd displays the error on the title. Here is the setup script that I ran mistakenly:
from setuptools import setup
setup(name='CodeX',
version='1.0',
description='CodeX lang&code',
author='',
author_email='',
url='127.0.0.1:5000/',
install_requires=['flask','flask-login','sqlalchemy','flask-sqlalchemy'])
And here is the full error message:
* Serving Flask app "webx.app"
* Forcing debug mode on
* Restarting with stat
File "C:\Python36\Scripts\flask.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Python36\Scripts\flask.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Is there a way to fix the error without having to uninstall and reinstall Flask?