How to update Python?

UPDATE: 2018-07-06 This post is now nearly 5 years old! Python-2.7 will stop receiving official updates from python.org in 2020. Also, Python-3.7 has been released. Check out Python-Future on how to make your Python-2 code compatible with Python-3. For updating conda, the documentation now recommends using conda update –all in each of your conda environments … Read more

ImportError: DLL load failed: %1 is not a valid Win32 application for Python Matplotlib

The error that you are getting is because you have installed the wrong component of matplotlib (there are the 32 bit and 64 bit components). This page provides you all binaries (32bit,64bit) for Windows. It also includes other packages apart from matplotlib if you may be needing them in the future. Try installing the proper … Read more

How to measure download speed and progress using requests?

see here: Python progress bar and downloads i think the code would be something like this, it should show the average speed since start as bytes per second: import requests import sys import time def downloadFile(url, directory) : localFilename = url.split(“https://stackoverflow.com/”)[-1] with open(directory + “https://stackoverflow.com/” + localFilename, ‘wb’) as f: start = time.clock() r = … Read more