Beginner Nosetist Set

I am trying to establish the following according to the tutorial:

I visited these links and clicked the download button; now each file is in the download folder, and I unpack / unpack them - not sure what that means, but it seemed necessary. Are they β€œinstalled”? If not, what does it really mean to install them? I tried typing nosetests in the terminal (as the book tells you), and also tried easy_install , but this does not work. In my opinion, my understanding is limited here in several ways.

I get the following -bash: nosetests: command not found , but trying to get:

nosetests . ---------------------------------------------------------------------- Ran 1 test in 0.007s OK

+8
python terminal install nosetests
source share
5 answers

It works on mac, it can work on linux

1) Open a terminal (be prepared to enter a password)

2) Type: sudo easy_install pip

3) Type: sudo pip install distribute

4) Type: sudo pip install nose

5) Type: sudo pip install virtualenv

Hope this helps, cheers!

+9
source share

They are not installed yet. Each has its own vagaries of how the installation process works, and in fact, some of these packages will include other packages with them. I.e

"If you use virtualenv, a copy of pip will be automatically installed in each virtual environment you create."

http://pypi.python.org/pypi/pip

As a relatively new python user myself (and a similar process has passed a long time ago), I look forward to more complete answers that come back for that.

+2
source share

You were on the right track, but the package is actually called the nose. The documentation for the nose (nose-scripts) can be found here: https://nose.readthedocs.org/en/latest/

Short answer: you have 2 main options: easy_install or pip . Install using setuptools / distribute: easy_install nose . Install using pip: pip install nose

+1
source share

Find out where the Nosysty script is. In OSX:

 /usr/local/share/nosetests 

Execute directly or configure the bash alias, possibly in .bash_profile:

 alias nosetests='/usr/local/share/python/nosetests' alias nosetests3='/usr/local/share/python3/nosetests' 
0
source share

Install Python 2.7 and just do it (Windows only - Windows PowerShell):

  • Setting PATH env:

C: \ Python27 \; C: \ Python27 \ Scripts \ "," User "

  1. pip is already installed

3.

 .\pip install distribute 

4.

 .\pip install nose 

5.

 .\pip install virtualenv 
0
source share

All Articles