Код: Выделить всё
import requests
url = "``https://github.com/something/something/releases/download/1.0/something.exe``"`
destination = r"C:\Users\something\Downloads"
response = requests.get(url)
if response.status_code == 200:
with open(destination, 'wb') as file:
file.write(response.content)
else:
print(f"Failed HTTP Status Code: {response.status_code}")
У меня есть уже пробовал запускать от имени администратора, но все равно ничего. Также я пытался изменить права доступа к папкам, но все было правильно?
Подробнее здесь: https://stackoverflow.com/questions/791 ... sts-module
Мобильная версия