Solution for pytest -m issue 'line 193, in _run_module_as_main "__main__", mod_spec)

Hello, 
To fix the following issue when installing anaconda 3 .

You need to detele the pytest land pytest and pytest-flask from the requirement.txt file.
if you have to upgraded you can run the following command 
pip install -U pytest --upgrade
pip install -U pytest-flask --upgrade

I faced this issue and fixed as described 
Hope this help you too.

Traceback (most recent call last):
  File "d:\python37\Lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\python37\Lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
1 Like