I started learning python recently and I know my problem may not be sth complicated. I issued below command from my Windows cmd to install pytest framework and its required dependencies
py -3 -m pip install pytest
and then issued:
py -3 -m pip install pytest-pep8
to install pep8 plug-in and required dependencies. Both commands were done successfully.
But when I want to run pytest by py.test --pep8 exp1.py command; I get mentioned error.
any ideas?
i am learning python with head first python book,
i have been trying to use pytest module but was,
not working and even search online everywhere
but i could not find the solution the problem but
some how, i manage to figure it out.
so here's the solution
the current version of pytest is version 6.2.2 unfortunately if use it with
py.test --pep8
it will not work because it has been deprecated the simple solution is to use this
version
pip install pytest==2.9.1
and when it's successfully installed when you tried
with the
py.test --pep8
it will work.
'py.test' is not recognized as an internal or external command, operable program or batch file