colab报错 FileNotFoundError: [Errno 2] No such file or directory
时间: 2023-08-26 08:15:01 浏览: 360
回答: 这个报错通常是由于路径问题引起的。在colab上使用绝对路径时,空格可能会导致报错。一种解决方法是在路径中的空格前添加反斜杠来转义空格,例如将"/content/drive/My Drive"改为"/content/drive/My\ Drive"。另外,可以尝试使用相对路径来避免这个问题。另外,如果上述方法都没有解决问题,可以尝试关闭colab和Google Drive,并休息一会儿后再重新打开,有时候这样可以解决问题。希望这些方法能够帮助您解决报错问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【深度学习】colab中跑yolo模型— No such file or directory: ‘/content/drive/My‘ 解决办法](https://blog.csdn.net/weixin_44211644/article/details/121916523)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [FileNotFoundError: [Errno 2] No such file or directory:‘fer2013.csv](https://blog.csdn.net/qq_41155736/article/details/116694027)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文