[英]How can i install a third party python library (for example Pandas) in QGIS on linux?
[英]How to install the library pyopencl in Qgis python?
Qgis 2.18中有一个模块为了工作,我需要将库Pyopencl放到库中。如何在Qgis python中安装库pyopencl? 我试图将所有文件传输到C:\\Python27\\Lib\\site-packages
,通过安装在python 2.7 libary pyopencl中的pip给出错误消息。 在资料夹中
C:\\ Python27 \\ LIB \\站点包
我将库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?
第一步是安装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
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.