python3.9安装PyOpenGL遇到“XXX is not a supported wheel on this platform.“

首先:在http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopengl下载相应版本的whl文件

遇到的ERROR及解决方法:

1.下载的包不符合你所在的平台的安装whl的名称规范
XXX is not a supported wheel on this platform.

ERROR: PyOpenGL_accelerate-3.1.5-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

解决方法:
1.查看pip支持的文件名及版本

  • win32常用:
import pip;
print(pip.pep425tags.get_supported())
  • amd64常用:
import pip._internal
print(pip._internal.pep425tags.get_supported())

我遇到的问题:
module ‘pip’ has no attribute ‘pep425tags’

AttributeError: module 'pip' has no attribute 'pep425tags'

python3.9安装PyOpenGL遇到“XXX is not a supported wheel on this platform.“_第1张图片
解决方法:
python -m pip debug --verbose

python39 -m pip debug --verbose

python3.9安装PyOpenGL遇到“XXX is not a supported wheel on this platform.“_第2张图片

下载对应版本后成功安装:在这里插入图片描述

你可能感兴趣的:(Errors,python,开发语言)