I am using Python 3.2.1 and I can\'t import the StringIO module. I use io.StringIO and it works, but I can\'t use it with numpy\'s
StringIO
io.StringIO
numpy
You can use the StringIO from the six module:
import six import numpy x = "1 3\n 4.5 8" numpy.genfromtxt(six.StringIO(x))