I tried setup ipython notebook.
I could "pip install -r requirements.txt" after "pip install numpy" and "sudo apt-get install libncurses-dev".
And I could do jupyter notebook.
But when I import sklearn, error occured.
Stack trace is below.
Please help me.
In [1]: import sklearn
RuntimeError Traceback (most recent call last)
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
ImportError Traceback (most recent call last)
in ()
----> 1 import sklearn
/home/ubuntu/share/nn-from-scratch/venv/local/lib/python2.7/site-packages/sklearn/init.py in ()
55 else:
56 from . import __check_build
---> 57 from .base import clone
58 __check_build # avoid flakes unused variable error
59
/home/ubuntu/share/nn-from-scratch/venv/local/lib/python2.7/site-packages/sklearn/base.py in ()
8
9 import numpy as np
---> 10 from scipy import sparse
11 from .externals import six
12 from .utils.fixes import signature
/home/ubuntu/share/nn-from-scratch/venv/local/lib/python2.7/site-packages/scipy/sparse/init.py in ()
211
212 from .base import *
--> 213 from .csr import *
214 from .csc import *
215 from .lil import *
/home/ubuntu/share/nn-from-scratch/venv/local/lib/python2.7/site-packages/scipy/sparse/csr.py in ()
11 from scipy._lib.six import xrange
12
---> 13 from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks,
14 get_csr_submatrix, csr_sample_values
15 from .sputils import upcast, isintlike, IndexMixin, issequence, get_index_dtype
ImportError: numpy.core.multiarray failed to import