mkdir /share/brick1 mkdir: cannot create directory ‘/share/brick1’: No such file or directory
时间: 2023-10-30 19:02:21 浏览: 101
As an AI language model, I cannot perform file operations on your system. However, the error message suggests that the directory "/share" does not exist, so you need to create it first before creating the subdirectory "/brick1". You can do this by running the following command:
```
mkdir -p /share/brick1
```
The "-p" option ensures that any missing parent directories will be created as well.
相关问题
mount: mount point /share/brick1 does not exist
As an AI language model, I cannot perform any system-level operations. However, based on the error message you provided, it seems that the mount point /share/brick1 does not exist on your system.
To resolve this issue, you need to create the mount point directory before attempting to mount the device or file system. You can use the following command to create the mount point directory:
```
mkdir /share/brick1
```
Once you have created the directory, you can try to mount the device or file system again using the mount command.
super().__init__(torch._C.PyTorchFileWriter(str(name))) RuntimeError: Parent directory C:\Users\86187\Desktop\大学事务\多元数据融合与智能分析\实验二\Amazing-Brick-DFS-and-DRL\DQN_train\..\DQN_train\dqn_weights does not exist.
这个错误提示表明,在运行代码时,Python无法找到指定的文件夹。
具体来说,`super().__init__(torch._C.PyTorchFileWriter(str(name)))`这行代码是在创建一个`SummaryWriter`对象,用于将训练过程的各种指标(如损失、准确率等)写入TensorBoard日志文件中。而`name`所指定的文件夹路径不存在,导致程序无法正常运行。
你需要确保指定的文件夹路径是正确的,并且已经在你的文件系统中创建。如果文件夹不存在,你需要手动创建它。可以使用Python的`os`模块或者命令行工具来创建文件夹。例如,你可以在命令行中输入以下命令来创建一个名为`dqn_weights`的文件夹:
```
mkdir C:\Users\86187\Desktop\大学事务\多元数据融合与智能分析\实验二\Amazing-Brick-DFS-and-DRL\DQN_train\dqn_weights
```
然后再次运行代码,应该就可以成功创建`SummaryWriter`对象并将指标写入日志文件了。
阅读全文