Python 错误:无法为使用PEP 517且无法直接安装的pyopencl构建控制盘

Python 错误:无法为使用PEP 517且无法直接安装的pyopencl构建控制盘,python,pyopencl,Python,Pyopencl,我正在尝试使用pip install pyopencl安装pyopencl,但收到以下错误行: ERROR: Failed building wheel for pyopencl \ Failed to build pyopencl \ ERROR: Could not build wheels for pyopencl which use PEP 517 and cannot be installed directly \ 我看过其他关于类似错误的帖子,但这些解决方案似乎不起作用 完整错误日

我正在尝试使用
pip install pyopencl
安装pyopencl,但收到以下错误行:

ERROR: Failed building wheel for pyopencl \
Failed to build pyopencl \
ERROR: Could not build wheels for pyopencl which use PEP 517 and cannot be installed directly \
我看过其他关于类似错误的帖子,但这些解决方案似乎不起作用

完整错误日志跟踪:


一些问题:您是否以root用户身份运行该程序?您是否已安装Visual Basic(…正确)?抱歉,我对这一点有点陌生,但我不确定您以root用户身份运行该程序是什么意思。我确实安装了Visual Basic,这是我从中下载的(我希望这是正确的。我有最新版本的Visual studio,还从上面的链接下载了“Visual studio的构建工具”)。对不起,我忘了您正在使用Windows(以“root”身份运行意味着以管理员身份运行,前面有“sudo”字样);我有时在我的Windows电脑上也有这个问题,但我不知道你能做什么。也许搜索“pip未能构建”或其他什么