我有python 3模块安装的一些问题.我正在尝试使用pip安装mysql:
python -m pip install mysql
Run Code Online (Sandbox Code Playgroud)
对于python 3.4.4,这是我得到的错误:
error: command 'C:\\Program Files (x86\\Microsoft Visual Studio 10.0\\VC\\BIN\\cl.exe' failed with exit status 2
我之前遇到过模块安装的其他问题,我通过安装Visual Studio C++ 2010解决了这些问题
顺便说一句,其他模块的安装工作正常.
我的规格:Windows 10 x64
Python 3.4.4 x86
我收到这个错误:
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'
Run Code Online (Sandbox Code Playgroud)
运行时:
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 ' …Run Code Online (Sandbox Code Playgroud)