I am trying to install the new MXNet from
validate-mxnet-installation.
I followed the instructions
(I chose options Linux->python->GPU->pip ) as you can see on the website and they were:
- install cuda8 from nvidia website
- install cuDNN 5 library
- update paths "PATH" and "LD_LIBRARY_PATH" in bashrc file
install pip using these bunch of lines:
$ sudo apt-get update $ sudo apt-get install -y wget python $ wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
- install the MXNet by:
$ pip install mxnet-cu80
- validate the installation. I'm stuck here
To validate I was required to run the following:
- open terminal and type
python
to start python type the following:
import mxnet as mx a = mx.nd.ones((2, 3), mx.gpu()) b = a * 2 + 1 b.asnumpy() array([[ 3., 3., 3.], [ 3., 3., 3.]], dtype=float32)
I am getting the following error when I try to run the above:
>>> import mxnet as mx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named mxnet
I'm kind of lost.. Does anyone know what should I do?