python遇到这个问题,尝试过网上的各种方法均不可行:求能解决问题的答案
FileNotFoundError: [Errno 2] Unable to synchronously open file (unable to open file: name = 'datasets/train_catvnoncat.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

FileNotFoundError 解决方案
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
18条回答 默认 最新
- CSDN专家-sinJack 2024-10-05 22:18关注
代码,文件路径前后存在空格,把空格都去掉就可以了
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报 编辑记录