TypeError: 'numpy.float64' object cannot be interpreted as an integer
报错内容:
Traceback (most recent call last):
File "C:\Users\xuan\.conda\envs\pytorch1-6\lib\site-packages\scipy\sparse\_sputils.py", line 225, in isintlike
operator.index(x)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
解决方法:
当前版本的numpy不支持使用浮点数作为步长,需要降低numpy版本。
注:
python版本和numpy版本要对应起来,回退python版本
浙公网安备 33010602011771号