I am new to stackoverflow as well as Python, and I hope to use stackoverflow to learn and improve my Python programming.
However, as soon as I installed Python, SciPy, NumPy on my Mac, I had a problem when I tried to run a full test of SciPy and NumPy to verify the installation:
>>> import scipy
>>> scipy.test()
Running unit tests for scipy
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
scipy.test()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/testing/nosetester.py", line 318, in test
self._show_system_info()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/testing/nosetester.py", line 187, in _show_system_info
nose = import_nose()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/testing/nosetester.py", line 69, in import_nose
raise ImportError(msg)
ImportError: Need nose >= 0.10.0 for tests - see http://somethingaboutorange.com/mrl/projects/nose
As indicated in the error message, I am installing this nose package with easy_install, and the installation seems to be successful since I am getting the following from bash:
mlstr:~ mlstr$ nosetests -V
nosetests version 1.1.2
So, I tried the SciPy test again, and it is not with the same message. Can someone please tell me if I need to do something to install / configure the nose so that it can be used by the SciPy and NumPy unit tests. Thanks in advance.
# 1: Rahul , , , : , easy_install pip bash, Python 2.6 2.7. , , 2.6 Snow Leopard. , , easy_install pip, Python 2.7? .
# 2. , : easy_install python, mac osx. , easy_install, Python 2.6, Mac OS X. .