Kaggle:/bin/sh:1:/kaggle/working/data/main.py:权限被拒绝

问题描述 投票:0回答:1

我已将我的存储库上传到kaggle,然后通过此块运行main.py,但是当我尝试这样做时,我在标题中收到错误。我已经尝试过使用 !make clean !make 但无济于事,有什么解决方案吗?

command = “/kaggle/working/data/main.py”


process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = process.communicate()


print(“stdout:”)
print(stdout.decode())
print(“stderr:”)
print(stderr.decode())
python github jupyter-notebook kaggle
1个回答
0
投票

使用此命令解决问题:

!chmod +x /kaggle/working/data/main.py

© www.soinside.com 2019 - 2024. All rights reserved.