@Viva_vir

Что делать, если visual studio не устанавлиает PyOpencl?

Пытаюсь поставить Pyopencl через visual studio. Но возникает ошибка, которая появляется на двух устройствах. На ноутбуке в линуксе все получилось без проблем, но на нем же в windows 10 выдает ошибку.

Вот ошибка из Pycharm
ERROR: Command errored out with exit status 1:
     command: 'c:\users\vovka\pycharmprojects\pytest\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\vovka\\AppData\\Local\\Temp\\pip-install-ysp7k72d\\pyopencl_3922d99e738347d09320fcbb30f11b7c\\setup.py'"'"'; __file__='"'"'C:\\Users\\vovka\\AppData\\Local\\Temp\\pip
-install-ysp7k72d\\pyopencl_3922d99e738347d09320fcbb30f11b7c\\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\vovka\AppData\Local\Temp\pip-record-jlmopzec\instal
l-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\vovka\pycharmprojects\pytest\venv\include\site\python3.7\pyopencl'
         cwd: C:\Users\vovka\AppData\Local\Temp\pip-install-ysp7k72d\pyopencl_3922d99e738347d09320fcbb30f11b7c\
    Complete output (97 lines):
    ---------------------------------------------------------------------------
    Pybind11 is not installed.
    ---------------------------------------------------------------------------
    Very likely, the build process after this message will fail.
    
    Simply press Ctrl+C and type
    python -m pip install pybind11
    to fix this. If you don't, the build will continue
    in a few seconds.
    
    [1] https://pybind11.readthedocs.io/en/stable/
    ---------------------------------------------------------------------------
    Continuing in 1 seconds...    
    ---------------------------------------------------------------------------
    Mako is not installed.
    ---------------------------------------------------------------------------
    That is not a problem, as most of PyOpenCL will be just fine
    without it. Some higher-level parts of pyopencl (such as
    pyopencl.reduction) will not function without the templating engine
    Mako [1] being installed. If you would like this functionality to
    work, you might want to install Mako after you finish
    installing PyOpenCL.
    
    Simply type
    python -m pip install mako
    either now or after the installation completes to fix this.
    
    [1] http://www.makotemplates.org/
    ---------------------------------------------------------------------------
    Hit Ctrl-C now if you'd like to think about the situation.
    ---------------------------------------------------------------------------
    Continuing in 1 seconds...   
    WARNING: The wheel package is not available.
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\algorithm.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\array.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\bitonic_sort.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\bitonic_sort_templates.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\cache.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\capture_call.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\clmath.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\clrandom.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\cltypes.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\elementwise.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\invoker.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\ipython_ext.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\reduction.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\scan.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\tools.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\version.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\_cluda.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\_mymako.py -> build\lib.win-amd64-3.7\pyopencl
    copying pyopencl\__init__.py -> build\lib.win-amd64-3.7\pyopencl
    creating build\lib.win-amd64-3.7\pyopencl\characterize
    copying pyopencl\characterize\performance.py -> build\lib.win-amd64-3.7\pyopencl\characterize
    copying pyopencl\characterize\__init__.py -> build\lib.win-amd64-3.7\pyopencl\characterize
    creating build\lib.win-amd64-3.7\pyopencl\compyte
    copying pyopencl\compyte\array.py -> build\lib.win-amd64-3.7\pyopencl\compyte
    copying pyopencl\compyte\dtypes.py -> build\lib.win-amd64-3.7\pyopencl\compyte
    copying pyopencl\compyte\__init__.py -> build\lib.win-amd64-3.7\pyopencl\compyte
    creating build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
    copying pyopencl\compyte\ndarray\gen_elemwise.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
    copying pyopencl\compyte\ndarray\gen_reduction.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
    copying pyopencl\compyte\ndarray\setup_opencl.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
    copying pyopencl\compyte\ndarray\test_gpu_elemwise.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
    copying pyopencl\compyte\ndarray\test_gpu_ndarray.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
    copying pyopencl\compyte\ndarray\__init__.py -> build\lib.win-amd64-3.7\pyopencl\compyte\ndarray
    running egg_info
    writing pyopencl.egg-info\PKG-INFO
    writing dependency_links to pyopencl.egg-info\dependency_links.txt
    writing requirements to pyopencl.egg-info\requires.txt
    writing top-level names to pyopencl.egg-info\top_level.txt
    reading manifest file 'pyopencl.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pyopencl.egg-info\SOURCES.txt'
    creating build\lib.win-amd64-3.7\pyopencl\cl
    copying pyopencl\cl\pyopencl-airy.cl -> build\lib.win-amd64-3.7\pyopencl\cl
    copying pyopencl\cl\pyopencl-bessel-j-complex.cl -> build\lib.win-amd64-3.7\pyopencl\cl
    copying pyopencl\cl\pyopencl-bessel-j.cl -> build\lib.win-amd64-3.7\pyopencl\cl
    copying pyopencl\cl\pyopencl-bessel-y.cl -> build\lib.win-amd64-3.7\pyopencl\cl
    copying pyopencl\cl\pyopencl-complex.h -> build\lib.win-amd64-3.7\pyopencl\cl
    copying pyopencl\cl\pyopencl-eval-tbl.cl -> build\lib.win-amd64-3.7\pyopencl\cl
    copying pyopencl\cl\pyopencl-hankel-complex.cl -> build\lib.win-amd64-3.7\pyopencl\cl
    copying pyopencl\cl\pyopencl-ranluxcl.cl -> build\lib.win-amd64-3.7\pyopencl\cl
    creating build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
    copying pyopencl\cl\pyopencl-random123\array.h -> build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
    copying pyopencl\cl\pyopencl-random123\openclfeatures.h -> build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
    copying pyopencl\cl\pyopencl-random123\philox.cl -> build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
    copying pyopencl\cl\pyopencl-random123\threefry.cl -> build\lib.win-amd64-3.7\pyopencl\cl\pyopencl-random123
    running build_ext
    building 'pyopencl._cl' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\vovka\pycharmprojects\pytest\venv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\vovka\\AppData\\Local\\Temp\\pip-install-ysp7k72d\\pyopencl_3922d99e738347d09320fcbb30f11b7c\\setup.py'"'"'; __file__='"'"'C:\\Users\
\vovka\\AppData\\Local\\Temp\\pip-install-ysp7k72d\\pyopencl_3922d99e738347d09320fcbb30f11b7c\\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\vovka\AppData\Loca
l\Temp\pip-record-jlmopzec\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\vovka\pycharmprojects\pytest\venv\include\site\python3.7\pyopencl' Check the logs for full command output.


Тоже самое я вижу и в visual studio.
Искал решения. Нашел лишь предложение о проверки пути до Python. Везде проверил, нигде нет названий на русском языке.
  • Вопрос задан
  • 162 просмотра
Решения вопроса 1
@kirolga
В логе ошибка "Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-buil..."

Пробовали установить?
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы