gpt4 book ai didi

python - 没有名为 html2text 的模块

转载 作者:行者123 更新时间:2023-11-28 20:41:53 29 4
gpt4 key购买 nike

我已经尝试了各种方法来安装库 html2text,但都以 ipython 无法导入它并显示错误消息而告终

"ImportError: No module named 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

我已经使用了 sudo-H sudo 两者都说它已经安装但是我无法导入。

如果您对正在发生的事情有任何想法,我们将不胜感激。

最佳答案

在我的例子中(ubuntu14)它只用了下面的命令:

sudo python -m pip install html2text 
html2text installed successfully.

关于python - 没有名为 html2text 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31963672/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com