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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -