pip wont install .WHL files

2019-02-26 12:59发布

When I try to install any .WHL from gohike by typing into the cmd C:\Users\owner\Downloads>pip install TA_Lib-0.4.9-cp27-none-win_amd64.WHLI get this print out:

`Processing c:\users\owner\downloads\ta_lib-0.4.9-cp27-none-win_amd64.whl
    Complete output from command python setup.py egg_info:
    Traceback <most recent call last>:
      File "<string>", line 1, in <module>
    IOError: [Errno 2] No such file or directory:'c:\\users\\owner\\appdata\\lo
cal\\temp\\pip-9gwk2c-build\\setup.py'
    -----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\owner\ap
pdata\local\temp\pip-9gwk2c-build\`

The part between pip- and -build inpip-9gwk2c-build is always different even on the same file.

I asked this Python 2.7.11 Pip 8.0.3 can't install gohike WHL of TA-Lib 0.4.9 a few days ago and decided to ask differently. Thanks to anyone who can help me!

标签: python pip
2条回答
在下西门庆
2楼-- · 2019-02-26 13:49

You have an outdated pip which does not understand wheels. Wheels are not even supposed to have a setup.py inside.

Try upgrading pip with pip install --upgrade pip and then running the command again.

查看更多
冷血范
3楼-- · 2019-02-26 13:52

Well, I didn't fix pip but I found out that if I use 7zip to open/unpack the wheel file and drag drop the 2 folders in it into C:\Python27\Lib\site-packages that it works!

查看更多
登录 后发表回答