Python instapy中出现权限错误的原因是什么?

Python instapy中出现权限错误的原因是什么?,python,instagram,geckodriver,Python,Instagram,Geckodriver,会话启动时导致的错误,它在开始时工作,但过了一段时间后就中断了 Traceback (most recent call last): File "C:\Users\Desktop\InstaPy-master\quickstart.py", line 12, in <module> session = InstaPy( username=insta_username, password=insta_password) File "C:\Users\Desktop\In

会话启动时导致的错误,它在开始时工作,但过了一段时间后就中断了

Traceback (most recent call last):
  File "C:\Users\Desktop\InstaPy-master\quickstart.py", line 12, in <module>
    session = InstaPy( username=insta_username, password=insta_password)
  File "C:\Users\Desktop\InstaPy-master\instapy\instapy.py", line 319, in __init__
    self.logger,
  File "C:\Users\Desktop\InstaPy-master\instapy\browser.py", line 114, in set_selenium_local_session
    driver_path = geckodriver_path or get_geckodriver()
  File "C:\Users\Desktop\InstaPy-master\instapy\browser.py", line 36, in get_geckodriver
    bin_path, sym_path = gdd.download_and_install()
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\site-packages\webdriverdownloader\webdriverdownloader.py", line 196, in download_and_install
    shutil.copy2(src_file, dest_file)
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\shutil.py", line 263, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\Users\AppData\Local\Programs\Python\Python37\lib\shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\dalto\\InstaPy\\assets\\geckodriver.exe'

出现此错误是因为我们试图打开文件,但该文件已在使用中,所以简单的选项是从任务管理器中杀死任务geckodriver.exe。这将解决问题,因为我的问题已解决。

您是否尝试检查该文件的权限?是的,该文件到目前为止没有权限,但我仍然收到错误您所说的无权限是什么意思?