gpt4 book ai didi

python - 通过pip安装newspaper3k包出错

转载 作者:太空宇宙 更新时间:2023-11-04 10:23:55 24 4
gpt4 key购买 nike

我正在尝试安装 newspaper3k。我正在根据 installation guide 做所有的事情

sudo apt-get install python-dev

sudo apt-get install libxml2-dev libxslt-dev

sudo apt-get install libjpeg-dev zlib1g-dev libpng12-dev

pip3安装报纸

在运行 pip install newspaper 时,我得到:

Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/tmp/pip_build_ovd/nltk/setup.py", line 23, in <module>

distribute_setup.use_setuptools()

File "/tmp/pip_build_ovd/nltk/distribute_setup.py", line 145, in use_setuptools

return _do_download(version, download_base, to_dir, download_delay)

File "/tmp/pip_build_ovd/nltk/distribute_setup.py", line 125, in _do_download

_build_egg(egg, tarball, to_dir)

File "/tmp/pip_build_ovd/nltk/distribute_setup.py", line 116, in _build_egg

raise IOError('Could not build the egg.')

OSError: Could not build the egg.

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_ovd/nltk

我从未遇到过此类错误。修复它的方法是什么?我做错了什么?

最佳答案

从 github 安装对我有帮助。

pip3安装git+https://github.com/codelucas/newspaper.git

关于python - 通过pip安装newspaper3k包出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30650098/

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