.whl is not a valid wheel filename, storing debug log for failure in C:\

大兔子大兔子 提交于 2019-12-10 13:08:35

问题


I am having trouble installing a wheel file via pip.

  1. I open my command prompt
  2. write the following in the prompt

    C:/Python34/Scripts/pip install C:/Users/Hamsa/Downloads/pygame.whl

  3. Then I get this message

    pygame.whl is not a valid wheel filename. Storing debug log for failure in C:\Users\Hamsa\pip\pip.log

I don't what to do and I need your help.


回答1:


You should correct name format for installing wheel file. Because wheel file name also includes many information such as the version of program, supported python version. Your command should be like the command below.

pip install pygame‑1.9.3‑cp34‑cp34m‑win_amd64.whl



回答2:


If the answer suggested by @Harun doesnot work, try

python -m pip install <whl file name with complete path>.whl

If u have more than 1 Python versions installed , check which version of python is being used to install the package using:

python -v 

Also refer to pygame readme for an official installation guide.



来源:https://stackoverflow.com/questions/33213430/whl-is-not-a-valid-wheel-filename-storing-debug-log-for-failure-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!