Python .whl 不是有效的轮文件名,将失败的调试日志存储在 C:\
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33213430/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
.whl is not a valid wheel filename, storing debug log for failure in C:\
提问by Hamsa Ilmi
I am having trouble installing a wheel file via pip.
我在通过 pip 安装轮文件时遇到问题。
- I open my command prompt
write the following in the prompt
C:/Python34/Scripts/pip install C:/Users/Hamsa/Downloads/pygame.whl
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
- 我打开我的命令提示符
在提示中写下以下内容
C:/Python34/Scripts/pip install C:/Users/Hamsa/Downloads/pygame.whl
然后我收到这条消息
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.
我不知道该怎么办,我需要你的帮助。
采纳答案by Harun ERGUL
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.
您应该更正安装轮文件的名称格式。因为wheel文件名中还包含了程序版本、支持的python版本等很多信息。您的命令应该类似于下面的命令。
pip install pygame?1.9.3?cp34?cp34m?win_amd64.whl
回答by Harshdeep Sokhey
If the answer suggested by @Harun doesnot work, try
如果@Harun 建议的答案不起作用,请尝试
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:
如果您安装了 1 个以上的 Python 版本,请检查使用哪个版本的 Python 来安装软件包:
python -v
Also refer to pygame readmefor an official installation guide.
另请参阅pygame 自述文件以获取官方安装指南。