【问题标题】:Google Colaboratory: os.mkdir: FileNotFoundError: [Errno 2] No such file or directoryGoogle Colaboratory: os.mkdir: FileNotFoundError: [Errno 2] No such file or directory
【发布时间】:2022-01-24 13:27:59
【问题描述】:

我正在尝试在 Google Colaboratory 上运行 03_01_autoencoder_train.ipynb。但是,我收到此错误:

FileNotFoundError                         Traceback (most recent call last)
<ipython-input-6-7a5d04d83c0d> in <module>()
      7 
      8 if not os.path.exists(RUN_FOLDER):
----> 9     os.mkdir(RUN_FOLDER)
     10     os.mkdir(os.path.join(RUN_FOLDER, 'viz'))
     11     os.mkdir(os.path.join(RUN_FOLDER, 'images'))

FileNotFoundError: [Errno 2] No such file or directory: 'run/vae/0001_digits'

这里出了什么问题。 Here is a link to my file.

【问题讨论】:

    标签: python google-colaboratory mkdir


    【解决方案1】:

    Google Colab 无权访问 dos 文件夹。它正在其独立的环境中搜索。要运行此代码,只需在 colab 中添加您需要的文件夹。 例如:

    【讨论】:

      猜你喜欢
      • 2020-03-29
      • 2021-03-26
      • 1970-01-01
      • 2018-03-07
      • 1970-01-01
      • 2012-08-25
      • 2019-10-14
      • 1970-01-01
      • 2023-03-06
      相关资源
      最近更新 更多