Reputation: 1177
windows 10, python 2.7 64 bit
hello, following a guide to this step :
pip install pipwin
pipwin install pycuda
gives me those options
Package `pycuda` found in cache
Choose version to download.
[0] : 2014.1+cuda6514
[1] : 2015.1.3+cuda7518
no matter what i choose , i get the following error(last line):
File "c:\users\skpok\anaconda2\lib\zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file
Anyone knows this mistake?
Upvotes: 10
Views: 31439
Reputation: 319
try:
pip install --no-cache-dir <package_name>
, it will work
when you try to pip install , first pip will check the pip cache for the package. if the package is found and fresh, pip will grap the .whl file for the package and try to install. this results in badzipfile as a .zip file is excepted.
try pip install in verbose mode
pip install <some_package> -vvvv
. you can see that it will first try to install from cache
Upvotes: 31
Reputation: 257
Updated:
The download link below is expired. You can find the latest version of pycuda in http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycuda
I got the same error. Maybe the package is damaged.
Downloading package . . .
http://www.lfd.uci.edu/~gohlke/pythonlibs/WjTMc73K/pycuda-2015.1.3+cuda7518-cp27-none-win32.whl <--- **damaged package?**
You can download this package:
http://www.lfd.uci.edu/~gohlke/pythonlibs/wkvprmqy/pycuda-2015.1.3+cuda7518-cp27-none-win32.whl
and then:
pip install "pycuda-2015.1.3+cuda7518-cp27-none-win32.whl"
It would be OK.
Upvotes: 4
Reputation: 572
If it's already installed but older version try to upgrade like so:
#upgrade
pip install -U pycuda
If didn't work try to uninstall and then install it again, like so:
#uninstall
pip uninstall pycuda
#install
pip install pycuda
If didn't work then, Try to install Windows SDK and make sure your CUDA Toolkit is the latest, then install PyCuda again. see if that solve your problem.
Upvotes: 1