IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
2.2 Testing the Numarray Python Extension Installation

2.2 Testing the Numarray Python Extension Installation

The standard Python distribution does not come, as of this writing, with the numarray Python extensions installed, but your system administrator may have installed them already. To find out if your Python interpreter has numarray installed, type "import numarray" at the Python prompt. You'll see one of two behaviors (throughout this document user input and python interpreter output will be emphasized as shown in the block below):

>>> import numarray
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: No module named numarray
indicating that you don't have numarray installed, or:
>>> import numarray
>>> numarray.__version__
'0.6'
indicating that you do. If you do, you can skip the next section and go ahead to section 2.4. If you don't, you have to get and install the numarray extensions as described in section 2.3.

Send comments to the NumArray community.