I am learning Python using Zed Shaw's "Learn Python the Hard Way" on Windows using PowerShell. I am in Exercise 46 where you set up a skelton project. I downloaded pip, distribute, nose, and virtualenv and I installed them by typing:
python <filename>.py install
However, probably because they were not installed where they were supposed to, when I try
nosetests
I get errors saying "The term 'nosetests' is not recognized as the name of a cmdelt, function, script file, or operable program. Check the spelling of the mae, or if a path was included, verify that the path is correct and try again.... CommandNotFoundException".
I have been going through the exercises fine, so I thought that the path was correct but do you have to change it now? Right now, I have the packages under the directory where I have my skelton (..project/skelton). I am sorry for a real-beginner question but if anybody could help me with this, I highly appreciate it!!
I had the same error but the answer was in the book. Type this into powershell, hope it works for you too.
Maybe this is late for your question, but this may help others that will experience the same issue that we've experienced. I've got mine working doing the ff. steps:
(Assuming that you've downloaded all packages as discussed in the book):
Follow this to install all:
Hope this helps!
Try this:
You should now be able to run nosetests as long as your virtualenv is activated.