问题描述
当我尝试从pip3安装telethon时,出现此错误,为什么? 我在cmd的32位Windows 10中运行此程序。
def perfundo (self) :
file = open('D:\\agron\\testing\\' + self.id_1.text + '-' + str(date.today()) + '.txt','x')
global lista
global t
# get the list of all PartsTextInputs
parts_prices = self.ids.parts_text_inputs.children[:]
# reverse the list to get them in the samee order that you see on the screen
parts_prices.reverse()
# loop through all the PartsTextInputs
for ti in parts_prices:
lista.append(ti.ids.txtinp1.text)
lista.append(ti.ids.txtinp2.text)
lista.append(ti.ids.txtinp3.text)
file.write('Emri dhe mbiemri :' + self.id_1.text + '\n' + 'Lloji i vetures :' + self.id_2.text + '\n' + 'Nr. i telefonit :' + self.id_3.text + '\n' + 'Problemi :' + self.id_4.text+ '\n' + 'idk :' + str(lista))
file.close()
解决方法
我通过卸载python和pip解决了该问题,我拥有的python版本是3.8.5,最新版本是3.8.9。