没有名为html2text的模块

Win*_*ant 2 python ipython

我已经尝试了各种方法来安装库html2text,所有这些都是因为ipython无法导入它并显示错误消息

"ImportError:没有名为html2text的模块"

The directory '/Users/NDunn/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/NDunn/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.
Collecting html2text
Installing collected packages: html2text
Successfully installed html2text-2015.6.21
Run Code Online (Sandbox Code Playgroud)

我用过sudo-Hsudo这两个说它已经安装但我无法导入.

任何有关正在发生的事情的想法都将不胜感激.

小智 5

在我的情况下(ubuntu14)它只使用以下命令:

sudo python -m pip install html2text 
html2text installed successfully.
Run Code Online (Sandbox Code Playgroud)