"nosetests" are not recognized on Windows after installation and adding to PATH

I am in exercise 46 of Learn Python Hard Way , and I intend to set my nose and launch the media. I installed the nose already using pip, but when I run nosetests in the directory above the "tests" folder, I get an error message:

'nosetests' is not recognized as an internal or external command, operable program or batch file. 

If that matters, I already changed the PATH variable to include the full path of Python27/Scripts and Python/Lib/site-package .

+6
source share
3 answers

If you are still having problems after following Warren Ukenser's instructions, try uninstalling and reinstalling.

Using pip: pip uninstall nose

I found this worked for me on a 64-bit version of Windows 8

+3
source

You can also use python -m nose in PowerShell.

This worked for me on Windows 7, 32 bit.

+2
source

I am using Windows and I had the same problem. The LPTHW book is based on Linux, and it's a little complicated for Windows users. When I printed the media, I had errors. Then I typed python -m nose, as Spellstaker said, and it worked perfectly. I noticed that in most cases we need to add "python -m" first so that it works on Windows. See here

+2
source

Source: https://habr.com/ru/post/924892/


All Articles