Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

trying to install pycuda, getting zip error?

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?

like image 976
hmmmbob Avatar asked Jan 19 '16 23:01

hmmmbob


1 Answers

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

like image 158
Chaithanya Kumar Avatar answered Sep 18 '22 13:09

Chaithanya Kumar