2020-10-28 淩亂°似流年 2022-11-20 09:37 139阅读 0赞 Macbook pro,将图片数据集中的图片名和标签分别放在两个text文本中,出现错误, 发生异常: NotADirectoryError Errno 20 Not a directory: xim.DS\_Store 亲测有效的方法是: 进入你要图片所在的那个目录,目录要进对,在终端cd 操作进入之后,输入以下命令行即可解决。 sudo find ./ -name ".DS_Store" -depth -exec rm {} \; 参考了别人文章: [https://blog.csdn.net/fitzgerald0/article/details/78867783?ops\_request\_misc=%257B%2522request%255Fid%2522%253A%2522160385237519215646527752%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request\_id=160385237519215646527752&biz\_id=0&utm\_medium=distribute.pc\_search\_result.none-task-blog-2~all~first\_rank\_v2~rank\_v28-6-78867783.pc\_first\_rank\_v2\_rank\_v28&utm\_term=%E5%8F%91%E7%94%9F%E5%BC%82%E5%B8%B8%3A+NotADirectoryError+Errno&spm=1018.2118.3001.4187][https_blog.csdn.net_fitzgerald0_article_details_78867783_ops_request_misc_257B_2522request_255Fid_2522_253A_2522160385237519215646527752_2522_252C_2522scm_2522_253A_252220140713.130102334.pc_255Fall._2522_257D_request_id_160385237519215646527752_biz_id_0_utm_medium_distribute.pc_search_result.none-task-blog-2_all_first_rank_v2_rank_v28-6-78867783.pc_first_rank_v2_rank_v28_utm_term_E5_8F_91_E7_94_9F_E5_BC_82_E5_B8_B8_3A_NotADirectoryError_Errno_spm_1018.2118.3001.4187] [https_blog.csdn.net_fitzgerald0_article_details_78867783_ops_request_misc_257B_2522request_255Fid_2522_253A_2522160385237519215646527752_2522_252C_2522scm_2522_253A_252220140713.130102334.pc_255Fall._2522_257D_request_id_160385237519215646527752_biz_id_0_utm_medium_distribute.pc_search_result.none-task-blog-2_all_first_rank_v2_rank_v28-6-78867783.pc_first_rank_v2_rank_v28_utm_term_E5_8F_91_E7_94_9F_E5_BC_82_E5_B8_B8_3A_NotADirectoryError_Errno_spm_1018.2118.3001.4187]: https://blog.csdn.net/fitzgerald0/article/details/78867783?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522160385237519215646527752%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=160385237519215646527752&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_v2~rank_v28-6-78867783.pc_first_rank_v2_rank_v28&utm_term=%E5%8F%91%E7%94%9F%E5%BC%82%E5%B8%B8%3A+NotADirectoryError+Errno&spm=1018.2118.3001.4187
还没有评论,来说两句吧...