Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Getting error Python could not import the service's module Traceback (most recent call last): File "C:\pip_project\FlaskAsService\WinFlaskapp.py", line 1, in <module> from flask import Flask ModuleNotFoundError: No module named 'flask' #100

Open
sumitkg86 opened this issue Aug 3, 2021 · 0 comments

Comments

@sumitkg86
Copy link

Hi,

I am trying to use flask as windows service, for that i have created a virtual environment and install flask there and create a windows service and installed it on my VCSE machine.
But when i am trying to start that service getting the following error
Python could not import the service's module
Traceback (most recent call last):
File "C:\pip_project\FlaskAsService\WinFlaskapp.py", line 1, in
from flask import Flask
ModuleNotFoundError: No module named 'flask'

My Python and flask versions are:-
(env) C:\pip_project\FlaskAsService>flask --version
Python 3.8.7
Flask 2.0.1
Werkzeug 2.0.1

Any help would be highly appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant