diff --git a/pipenv/utils.py b/pipenv/utils.py index bf99cdd5..d63190af 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -944,6 +944,5 @@ def download_file(url, filename): if not r.ok: raise IOError('Unable to download file') - r.raw.decode_content = True with open(filename, 'wb') as f: - shutil.copyfileobj(r.raw, f) + f.write(r.content)