搜索内容

有一个问题?

如果您有任何疑问,可以在下面询问或输入您要寻找的!

Pycharm中报错 No such file or directory: '../data?

技术聚客 未结 0 1374
weixin_50443417
weixin_50443417 2021-03-08 00:06

报错如下:

Traceback (most recent call last): File "D:/Pycharm/PycharmProject/Py/ASTGCN-r-pytorch-master/ASTGCN-r-pytorch-master/prepareData.py", line 309, in <module> data = np.load(graph_signal_matrix_filename) File "D:\Anaconda3\envs\Pt1_6\lib\site-packages\numpy\lib\npyio.py", line 416, in load fid = stack.enter_context(open(os_fspath(file), "rb")) FileNotFoundError: [Errno 2] No such file or directory: '../data/PEMS08/PEMS08.npz'

出错的代码段:

data = np.load(graph_signal_matrix_filename) data['data'].shape with contextlib.ExitStack() as stack: if hasattr(file, 'read'): fid = file own_fid = False else: fid = stack.enter_context(open(os_fspath(file), "rb")) own_fid = True

望大佬们解惑,真的不知道怎么改。救救孩子....

回答
  • 消灭零回复
提交回复