BadZipfile: Bad CRC-32 while install in pip

I’m going to install using pip install in python2, CUDA8.0, linux, but some wrong occurs. And i’m sure my python2 is UCS4

Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/pip/”, line 215, in main
status =, args)
File “/usr/local/lib/python2.7/dist-packages/pip/commands/”, line 324, in run
File “/usr/local/lib/python2.7/dist-packages/pip/req/”, line 380, in prepare_files
File “/usr/local/lib/python2.7/dist-packages/pip/req/”, line 620, in _prepare_file
session=self.session, hashes=hashes)
File “/usr/local/lib/python2.7/dist-packages/pip/”, line 809, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File “/usr/local/lib/python2.7/dist-packages/pip/”, line 715, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File “/usr/local/lib/python2.7/dist-packages/pip/utils/”, line 599, in unpack_file
flatten=not filename.endswith(’.whl’)
File “/usr/local/lib/python2.7/dist-packages/pip/utils/”, line 488, in unzip_file
data =
File “/usr/lib/python2.7/”, line 935, in read
return, “r”, pwd).read()
File “/usr/lib/python2.7/”, line 630, in read
data = self.read1(n)
File “/usr/lib/python2.7/”, line 692, in read1
self._update_crc(data, eof=eof)
File “/usr/lib/python2.7/”, line 647, in _update_crc
raise BadZipfile(“Bad CRC-32 for file %r” %
BadZipfile: Bad CRC-32 for file ‘torch/lib/’

what should i do to fix it

your download was incomplete. hence this error

1 Like