我在运行这个命令:
AWS_PROFILE=sandbox aws s3 cp local_path bucket --recursive
这个很好用。我想运行一个python脚本。这是我的代码:
^{pr2}$但它不起作用。在
错误回溯:
File "bin/run_report.py", line 128, in main
subprocess.Popen(cmd).communicate()
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1025, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
我不明白我做错了什么。我已经三次检查了到local和bucket的路径,如前所述,它从shell工作(我不想运行shell=True)
使用
aws
cliprofile
开关选择配置文件。在命令现在应该是:
^{pr2}$相关问题 更多 >
编程相关推荐