如何在Qgis python中安装库pyopencl?

时间:2017-05-23 10:53:50

标签: python qgis pyopencl

Qgis 2.18中有一个模块对于工作我需要放置库Pyopencl 如何在Qgis python中安装库pyopencl? 我试图将所有文件转移到C:\Python27\Lib\site-packages 给出错误信息 通过pip我安装在python 2.7 libary pyopencl中。在文件夹

  

C:\ Python27 \ Lib \ site-packages

我将文件夹Pyopencl转移到文件夹Qgis

  

C:\ Program Files \ QGIS 2.18 \ apps \ Python27 \ lib \ site-packages

    import pyopencl
AttributeError: 'module' object has no attribute 'cffi_cl'

我怎样才能在qgis中安装库Pyopencl?

enter image description here

1 个答案:

答案 0 :(得分:0)

第四步是安装 Pyopencl 库,请遵循以下指南:

http://www.minho-kim.com/courses/17sp43.635/pyopencl.html

就我而言,例如:

python -m pip install D:\fjraga\Descargas\pyopencl-2017.1+cl12-cp27-cp27m-win_amd64.whl

,再次打开 Qgis import pyopencl后。

enter image description here