有没有人有线索,为什么这个命令会导致这个错误?我试图在安装了NVIDIA GPU和CUDA以及Python 2.7.14的Windows10机器上安装它 .

DOS命令:

python -m pip install pyopencl

输出/错误:

收集pyopencl使用缓存pyopencl-2017.2.tar.gz要求已经满足:numpy在c:\ python27 \ lib \ site-packages(来自pyopencl)要求已经满足:pytools> = 2017.2 in c:\ python27 \ lib \ site-包(来自pyopencl)要求已满足:pytest> = 2 in c:\ python27 \ lib \ site-packages(来自pyopencl)要求已满足:decorator> = 3.2.0 in c:\ python27 \ lib \ site-packages(来自pyopencl)要求已经满足:cffi> = 1.1.0 in c:\ python27 \ lib \ site-packages(来自pyopencl)要求已经满足:appdirs> = 1.4.0 in c:\ python27 \ lib \ site-packages(来自pyopencl)要求已经满足:6> = 1.9.0在c:\ python27 \ lib \ site-packages(来自pyopencl)要求已经满足:py> = 1.5.0 in c:\ python27 \ lib \ site-packages(来自pytest> = 2-> pyopencl)要求已满足:attrs> = 17.2.0 in c:\ python27 \ lib \ site-packages(from pytest> = 2-> pyopencl)要求已满足:pluggy <0.7,> = 0.5在c:\ python27 \ lib \ site-packages中(来自py test> = 2-> pyopencl)要求已经满足:funcsigs; python_version <“3.0”在c:\ python27 \ lib \ site-packages中(来自pytest> = 2-> pyopencl)要求已经满足:colorama; c:\ python27 \ lib \ site-packages中的sys_platform ==“win32”(来自pytest> = 2-> pyopencl)已满足要求:c:\ python27 \ lib \ site-packages中的setuptools(来自pytest> = 2- > pyopencl)要求已经满足:pycparser在c:\ python27 \ lib \ site-packages(来自cffi> = 1.1.0-> pyopencl)安装收集的软件包:pyopencl运行setup.py install for pyopencl ... error完成输出来自命令C:\ Python27 \ python.exe -u -c“import setuptools,tokenize; file ='c:\ users \ USERA \ appdata \ local \ temp \ pip-build-6sqhas \ pyopencl \ setup.py'; f = getattr(tokenize,'open',open)(file); code = f.read() . replace('\ r \ n','\ n'); f.close(); exec(编译(代码,文件) ,'exec'))“install --record c:\ users \ USERA \ appdata \ local \ temp \ pip-jcsz8t-record \ install-record.txt --single-version-external-managed --compile:running install运行构建运行build_py创建构建创建build \ lib.win-amd64-2.7创建build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ algorithm.py - > build \ lib.win-amd64-2.7 \ pyopencl c opying pyopencl \ array.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ bitonic_sort.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ bitonic_sort_templates.py - > build \ lib . win-amd64-2.7 \ pyopencl复制pyopencl \ cache.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ capture_call.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ cffi_cl . py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ clmath.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ clrandom.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ cltypes.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ elementwise.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ invoker.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ ipython_ext.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ mempool.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ reduction.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ scan.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyope ncl \ tools.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl \ version.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl_buffers.py - > build \ lib.win-amd64 -2.7 \ pyopencl复制pyopencl_cluda.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl_mymako.py - > build \ lib.win-amd64-2.7 \ pyopencl复制pyopencl__init__.py - > build \ lib.win- amd64-2.7 \ pyopencl创建build \ lib.win-amd64-2.7 \ pyopencl \ characterize复制pyopencl \ characterize \ performance.py - > build \ lib.win-amd64-2.7 \ pyopencl \ characterize复制pyopencl \ characterize__init __ . py - > build \ lib.win-amd64-2.7 \ pyopencl \ characterize创建build \ lib.win-amd64-2.7 \ pyopencl \ compyte复制pyopencl \ compyte \ array.py - > build \ lib.win-amd64-2.7 \ pyopencl \ compyte复制pyopencl \ compyte \ dtypes.py - > build \ lib.win-amd64-2.7 \ pyopencl \ compyte复制pyopencl \ compyte__init __ . py - > build \ lib.win-amd64-2.7 \ pyopencl \ compyte创建build \ lib.win -amd64-2.7 \ pyopencl \ compyte \ ndarray复制pyopencl \ compyte \ ndarray \ gen_elemwise.py - >build \ lib.win-amd64-2.7 \ pyopencl \ compyte \ ndarray复制pyopencl \ compyte \ ndarray \ gen_reduction.py - > build \ lib.win-amd64-2.7 \ pyopencl \ compyte \ ndarray复制pyopencl \ compyte \ ndarray \ setup_opencl复制pyopencl \ compyte .py - > build \ lib.win-amd64-2.7 \ pyopencl \ ndarray \ test_gpu_ndarray.py - > build \ lib.win-amd64-2.7 \ pyopencl \ compyte \ ndarray复制pyopencl \ compyte \ ndarray__init __ . py - > build \ lib.win-amd64-2.7 \ pyopencl \ compyte \ ndarray运行egg_info写需求写入pyopencl.egg-info \ requires.txt写入pyopencl.egg-info \ PKG-INFO将顶级名称写入pyopencl.egg-info \ top_level.txt将dependency_links写入pyopencl.egg-info \ dependency_links.txt警告:manifest_maker:未找到标准文件'-c'读取清单文件'pyopencl.egg-info \ SOURCES.txt'
阅读清单模板'MANIFEST.in'
警告:找不到匹配'src \ c_wrapper \ * .hpp'的文件
警告:找不到与'doc \ _static \ * .css'匹配的文件
警告:找不到与'doc \ _templates \ * .html'匹配的文件
编写清单文件'pyopencl.egg-info \ SOURCES.txt'
创建build \ lib.win-amd64-2.7 \ pyopencl \ cl
复制pyopencl \ cl \ pyopencl-airy.cl - > build \ lib.win-amd64-2.7 \ pyopencl \ cl
复制pyopencl \ cl \ pyopencl-bessel-j-complex.cl - > build \ lib.win-amd64-2.7 \ pyopencl \ cl
复制pyopencl \ cl \ pyopencl-bessel-j.cl - > build \ lib.win-amd64-2.7 \ pyopencl \ cl
复制pyopencl \ cl \ pyopencl-bessel-y.cl - > build \ lib.win-amd64-2.7 \ pyopencl \ cl
复制pyopencl \ cl \ pyopencl-complex.h - > build \ lib.win-amd64-2.7 \ pyopencl \ cl
复制pyopencl \ cl \ pyopencl-eval-tbl.cl - > build \ lib.win-amd64-2.7 \ pyopencl \ cl
复制pyopencl \ cl \ pyopencl-hankel-complex.cl - > build \ lib.win-amd64-2.7 \ pyopencl \ cl
复制pyopencl \ cl \ pyopencl-ranluxcl.cl - > build \ lib.win-amd64-2.7 \ pyopencl \ cl
创建build \ lib.win-amd64-2.7 \ pyopencl \ cl \ pyopencl-random123
复制pyopencl \ cl \ pyopencl-random123 \ array.h - > build \ lib.win-amd64-2.7 \ pyopencl \ cl \ pyopencl-random123
复制pyopencl \ cl \ pyopencl-random123 \ openclfeatures.h - > build \ lib.win-amd64-2.7 \ pyopencl \ cl \ pyopencl-random123
复制pyopencl \ cl \ pyopencl-random123 \ philox.cl - > build \ lib.win-amd64-2.7 \ pyopencl \ cl \ pyopencl-random123
复制pyopencl \ cl \ pyopencl-random123 \ threefry.cl - > build \ lib.win-amd64-2.7 \ pyopencl \ cl \ pyopencl-random123
运行build_ext
生成cffi模块'build \ temp.win-amd64-2.7 \ Release \ pyopencl._cffi.cpp'
创建build \ temp.win-amd64-2.7
创建build \ temp.win-amd64-2.7 \ Release
Build 'pyopencl._cffi'扩展
创建build \ temp.win-amd64-2.7 \ Release \ build
创建build \ temp.win-amd64-2.7 \ Release \ build \ temp.win-amd64-2.7
创建build \ temp.win-amd64-2.7 \ Release \ build \ temp.win-amd64-2.7 \ Release
创建build \ temp.win-amd64-2.7 \ Release \ src
创建build \ temp.win-amd64-2.7 \ Release \ src \ c_wrapper
C:\ Users \ USERA \ AppData \ Local \ Programs \ Common \ Microsoft \ Visual C for Python \ 9.0 \ VC \ Bin \ amd64 \ cl.exe / c / nologo / Ox / MD / W3 / GS-
/ DNDEBUG -DPYGPU_PACKAGE = pyopencl -DPYGPU_PYOPENCL = 1 -DPYOPENCL_USE_SHIPPED_EXT = 1 -Isrc / c_wrapper / -IC:\ Python27 \ include -IC:\ Python27 \ PC /Tpbuild\temp.win-amd64-2.7\Release\pyopencl._cffi . cpp /Fobuild\temp.win-amd64-2.7\Release\build\temp.win-amd64-2.7\Release\pyopencl._cffi.obj -std = gnu 11 cl:命令行警告D9002:忽略未知选项'-std = gnu 11'pyopencl._cffi.cpp C:\ Users \ USERA \ AppData \ Local \ Programs \ Common \ Microsoft \ Visual C for Python \ 9.0 \ VC \ Include \ stdint.h(82):error C2371:'int8_t':重新定义;不同的基本类型build \ temp.win-amd64-2.7 \ Release \ pyopencl._cffi.cpp(211):请参阅'int8_t'c的声明:\ users \ USERA \ appdata \ local \ temp \ pip-build-6sqhas \ pyopencl \ src \ c_wrapper \ clinfo_ext.h(10):致命错误C1083:无法打开包含文件:'CL / cl.h':没有这样的文件或目录错误:命令'C:\ Users \ USERA \ AppData \ Local \ Programs \ Common \ Microsoft \ Visual C for Python \ 9.0 \ VC \ Bin \ amd64 \ cl.exe'失败,退出状态为2 ----------------------- -----------------命令“C:\ Python27 \ python.exe -u -c”导入setuptools,
tokenize; file ='c:\ users \ USERA \ appdata \ local \ temp \ pip-build-6sqhas \ pyopencl \ setup.py'; f = getattr(tokenize,'open',open)(file); code = f .read() . replace('\ r \ n','\ n'); f.close(); exec(compile(code,file,'exec'))“install --record c:\ users \ USERA \ appdata \ local \ temp \ pip-jcsz8t-record \ install-record.txt --single-version-external-managed --compile“失败,错误代码1在c:\ users \ USERA \ appdata \ local \ temp \ PIP-集结6sqhas \ pyopencl \