你好,我正试图通过终端在我的google存储桶中运行python代码,但我不知道我现在在做什么。
我将ssh连接到我的虚拟机,如下所示:

为了运行位于bert文件夹下的create_pretraining_data.py代码,我尝试了
python3 create_pretraining_data.py --input_file ...
python3 gs://bucket-hosrevbert-1/bert/create_pretraining_data.py --input_file ...但是这些都返回No such file or directory
我想我只是遗漏了一个简单的要点,但我不确定会是什么。
你们能给我点建议吗?提前感谢!
发布于 2021-05-07 20:18:05
为此,您可以使用gcsfuse。在目录中挂载存储桶
gcsfuse bucket-hosrevbert-1 /path/to/mount/然后运行您的脚本
python3 /path/to/mount/bert/create_pretraining_data.py --....https://stackoverflow.com/questions/67430517
复制相似问题