我在嘗試在指定文件夾中創建zip文件時似乎遇到權限問題的錯誤testfolder
-folder具有以下權限: drwxr-XR-X 193像做夢 當試圖在python我得到啓動下面的命令如下:在python中使用7zip在給定路徑中創建一個受密碼保護的文件
p= subprocess.Popen(['7z','a','-pinfected','-y','/home/John/testfolder/yada.zip'] + ['test.txt'],stdout=PIPE.subprocess,stderr=PIPE.subprocess)
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/local/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 13] Permission denied
任何想法是錯的權限?
我很新的,我的蟒蛇從/ usr/local/bin目錄路徑