当前位置: 首页 > 知识库问答 >
问题:

这个轮子怎么装?

姚星腾
2023-03-14

我设法安装了pip,但当我使用pip安装下载的车轮时,它会显示:

C:\Python34\Scripts\pip install pygame-1.9.2a0-cp34-none-win_amd64.whl
Requirement 'pygame-1.9.2a0-cp34-none-win_amd64.whl' looks like a filename, but the file does not exist
pygame-1.9.2a0-cp34-none-win_amd64.whl is not a supported wheel on this platform

该文件与PIP位于同一文件夹(脚本)中。

C:\Python34\Scripts\wheel install pygame-1.9.2a0-cp34-none-win_amd64.whl
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 358, in main
    args.func(args)
  File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 301, in install_f
    args.wheel_dirs, args.force, args.list_files)
  File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 202, in install
    raise WheelError("No such wheel file: {}".format(req))
wheel.tool.WheelError: No such wheel file: pygame-1.9.2a0-cp34-none-win_amd64.whl
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "C:\Python34\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Python34\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\wheel.exe\__main__.py", line 9, in <module>
  File "C:\Python34\lib\site-packages\wheel\tool\__init__.py", line 361, in main
    sys.stderr.write(e.message + "\n")
AttributeError: 'WheelError' object has no attribute 'message'

共有1个答案

章威
2023-03-14

使用pip使用完整路径安装车轮文件:

C:\Python34\Scripts\pip install C:\Python34\Scripts\pygame-1.9.2a0-cp34-none-win_amd64.whl

没有路径,名称被视为一个需求,而不是一个已经下载的文件。这对于支持当前Python体系结构的wheel文件应该可以工作。您可以通过以下方法验证您的体系结构:

C:\Python34\python.exe -c "import distutils.util; print(distutils.util.get_platform())"

这将打印win_amd6。如果它打印的是win32,则您有一个32位的Python二进制文件,需要选择一个不同的轮。

 类似资料:
  • 问题内容: 这是代码: 输出是然后 为什么是第一个输出而不是? 问题答案: 它在第一个示例中进行整数除法,因为这是数字文字的默认类型。尝试将其更改为(或-d后缀表示a ),您应该得到相同的答案。

  • 失败:生成失败,出现异常。 > 其中:Script“C:\flutter\packages\flutter_tools\gradle\flutter.gradle”行:900 错误:任务“:app:CompileFlutterBuildDebug”执行失败。 进程“command”C:\flutter\bin\flutter.bat“已完成,退出值为非零%1 生成在%12s中失败异常:Gradle

  • ui框架用uview,展示的效果如下(不是想要的效果) 想要的效果如下图:

  • 问题内容: boolean r = false ; int s = 0 ; while (r == false) ; { s = getInt() ; if (!(s>=0 && s<=2)) System.out.println (“try again not a valid response”) ; else r = true ; } 即使输入3或123,循环也不会终止,文本也不会显示。怎么了

  • 所以这很奇怪。 我收到一封正在生成的电子邮件,上面有一个451错误,除了导致它的原因是主题行的纯文本部分:s 这个主题行通过罚款: 这个会导致451错误: 作为参考,错误451用于裸LF(http://cr.yp.to/docs/smtplf.html)。它通常是由未在设置中声明行结束规则或使用单引号引起的,即'/r/n/'而不是"/r/n"。我的设置是正确的,电子邮件工作正常。 调试器中值得注意