我的问题是关于Pypy错误。 Totay我打算开始使用pypy。但是,当我运行我以前的python代码时,它给了我一个奇怪的错误消息。 这是我的代码:
import numpy as np
k = np.load('alldata.npy')
print k.shape
当我使用python2 ./p.py它给了我;
(942962,64)然而,当我用pypy ./p.py运行我的代码时,它给了我这个:
Traceback (most recent call last):
File "./p.py", line 5, in <module>
k = np.load('bA1024.npy')
File "/usr/local/lib/pypy2.7/dist-packages/numpy/lib/npyio.py", line406, in load
pickle_kwargs=pickle_kwargs)
File "/usr/local/lib/pypy2.7/dist-packages/numpy/lib/format.py", line 649, in read_array
array = numpy.fromfile(fp, dtype=dtype, count=count)
File "/usr/local/lib/pypy2.7/dist- packages/numpy/core/multiarray.py", line 83, in tmp
raise NotImplementedError("%s not implemented yet" % func)
NotImplementedError: fromfile not implemented yet