windows – PermissionError:[Errno 13]权限被拒绝

我收到这个错误
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\python34\lib\tkinter\__init__.py",line 1538,in __call__
return self.func(*args)
File "C:/Users/marc/Documents/Programmation/Python/Llamachat/Llamachat/Llamachat.py",line 32,in download
with open(place_to_save,'wb') as file:
PermissionError: [Errno 13] Permission denied: '/goodbye.txt'

运行时:

def download():
    # get selected line index
    index = films_list.curselection()[0]
    # get the line's text
    selected_text = films_list.get(index)
    directory = filedialog.askdirectory(parent=root,title="Choose where to save your movie")
    place_to_save = directory + '/' + selected_text
    print(directory,selected_text,place_to_save)
    with open(place_to_save,'wb') as file:
        connect.retrbinary('RETR ' + selected_text,file.write)
    tk.messageBox.showwarning('File downloaded','Your movie has been successfully downloaded!' 
                              '\nAnd saved where you asked us to save it!!')

有人能告诉我我做错了什么吗?
谢谢

眼镜 :
Python 3.4.4 x86
Windows 10 x64

更改要保存的目录的权限,以便所有用户都具有读写权限.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...