QGIS安裝插件時遇到的No module named 'future'

問題描述

  • 我用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,就安裝好了,然後在安裝插件,並啓用插件就沒有報錯了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章