Access Violation (0xC0000005) Numpy Array

I have this simple numpy / python code below:

from numpy import zeros, float32

v = 3039345
d = 400
i = 354993
j = 0

var1 = zeros((v,d), dtype=float32)
var1[i, j] = 0 #the problem pops here

when the last line is interpreted, I have the following:

Process finished with exit code -1073741819 (0xC0000005)

If I <354993 the execution is ok. I am using Python 2.7 32-bit compared to Windows 8 64-bit. Is it due to memory limitations? in this case would be the best solution for this job?

Thanks.

+4
source share
1 answer

32- numpy. Numpy , , , , , 2 ** 32. , , , .

64- python numpy, .

+1

Source: https://habr.com/ru/post/1623351/


All Articles