问题描述
- 我用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,就安装好了,然后在安装插件,并启用插件就没有报错了。