[英]how to open tor browser in mac using python?
我正在尝试在 python 中使用 mac os 打开 Tor 浏览器,但总是出现权限被拒绝错误,我们检查了文件夹权限,它在那里只能读写
def open_tor():
# careful about the / when you it's usually \
subprocess.Popen(["/Applications/Tor Browser.app"],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
time.sleep(10) # to give plenty of time for Tor to load
错误:
self._execute_child(args, executable, preexec_fn, close_fds,
File
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py",
line 1845, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/Applications/Tor Browser.app'
我收到权限被拒绝错误
PermissionError: [Errno 13] 权限被拒绝
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.