Skip to content
This repository was 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

@sumitkg86

Description

@sumitkg86

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions