我已将我的存储库上传到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())
使用此命令解决问题:
!chmod +x /kaggle/working/data/main.py