QGIS安装插件时遇到的No module named 'future'

本文介绍了解决QGIS安装插件时遇到的“没有future模块”错误的方法。通过使用pip3安装future模块,可以顺利安装并启用QGIS插件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述

  • 我用QGIS安装插件,报错:No module named ‘future’
    意为:没有future模块

问题原因

安装的python 3.x没有future模块,

问题解决

给python安装future模块
在终端输入命令
sudo pip3 install future
回车后,输入密码,注意密码是不显示出来的。
稍等一会下载安装,如:
sudo pip3 install future
Password:
The directory ‘/Users/Elvis/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/Users/Elvis/Library/Caches/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting future
Downloading https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz (824kB)
100% |████████████████████████████████| 829kB 82kB/s
Installing collected packages: future
Running setup.py install for future … done
Successfully installed future-0.16.0
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the ‘pip install –upgrade pip’ command.


提示Successfully installed future-0.16.0,就安装好了,然后在安装插件,并启用插件就没有报错了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值