numpy.test error in virtualenv with ERROR: test_multiarray.TestNewBufferProtocol.test_relaxed_strides -


in ubuntu system,i install numpy in virtualenv python 2.7. after install it, using numpy.test:

python -c "import numpy; numpy.test()"   

there errors this:

error: test_multiarray.testnewbufferprotocol.test_relaxed_strides

traceback (most recent call last):   file "/home/zjd/wangliangguo/theano-env/local/lib/python2.7/site-     packages/nose/case.py", line 197, in runtest self.test(*self.arg) file "/home/zjd/wangliangguo/theano-env/local/lib/python2.7/site-packages/numpy/core/tests/test_multiarray.py", line 5366, in test_relaxed_strides fd.write(c.data) typeerror: 'buffer' not have buffer interface 

i had same error python 2.7.3. upgrading python 2.7.11 fixed me.

i'm on ubuntu 12.04 lts, , default apt-get repositories didn't have python 2.7.11, followed these instructions: https://superuser.com/a/942296


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -