Jump to content

http://imgur.com/gallery/GlOtkOe/newHere is the code I typed in.

 

http://learnpythonthehardway.org/book/ex46.htmlThat's the lesson.

 

I'm pretty sure my code is identical to Zed's and when I type in "nosetests" it says: -bash: nosetest: command not found

 

What did I do wrong?

Link to comment
https://linustechtips.com/topic/342970-learnpythonthehardway-ex46-help/
Share on other sites

Link to post
Share on other sites

 

http://imgur.com/gallery/GlOtkOe/newHere is the code I typed in.

 

http://learnpythonthehardway.org/book/ex46.htmlThat's the lesson.

 

I'm pretty sure my code is identical to Zed's and when I type in "nosetests" it says: -bash: nosetest: command not found

 

What did I do wrong?

 

Have you installed Nose??

My Current Build: 

Intel i5 3570K @ 4.4GHz 1.11V, Cooler Master Hyper 212 EVO, Asrock Z77 Extreme4, Corsair Vengeance 8GB 1600MHz, Samsung 840 EVO 250GB, Asus GTX 760 DCII Overclocked, Corsair CX600M

Link to post
Share on other sites

Yep, with pip and by downloading it.

Try running "Sudo pip install nose"??

My Current Build: 

Intel i5 3570K @ 4.4GHz 1.11V, Cooler Master Hyper 212 EVO, Asrock Z77 Extreme4, Corsair Vengeance 8GB 1600MHz, Samsung 840 EVO 250GB, Asus GTX 760 DCII Overclocked, Corsair CX600M

Link to post
Share on other sites

I did it and still getting the same error, I should mention this is on a mac.

Check out this thread on StackExchange. The first answer seems to work for Mac :)

 

http://stackoverflow.com/questions/9270188/beginner-installing-nosetests-package

My Current Build: 

Intel i5 3570K @ 4.4GHz 1.11V, Cooler Master Hyper 212 EVO, Asrock Z77 Extreme4, Corsair Vengeance 8GB 1600MHz, Samsung 840 EVO 250GB, Asus GTX 760 DCII Overclocked, Corsair CX600M

Link to post
Share on other sites

Check out this thread on StackExchange. The first answer seems to work for Mac :)

 

http://stackoverflow.com/questions/9270188/beginner-installing-nosetests-package

I install it all and I don't think I'm doing it right, from what I understand I have to cd to projects/skeleton and then type in "nosetests". That is what I have been doing, is that correct?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×