我尝试了以下命令
pip3 install geograpy
警告来了
WARNING! You are attempting to install newspaper's python2 repository on python3. PLEASE RUN `$pip3 install newspaper3k` for python3 or `$pip install newspaper` for python2
Command "python setup.py egg_info" Failed with error code 1 in /tmp/pip-install-ulhaaak8/newspaper/
我尝试过之后
pip3 install newspaper3k
成功安装
在我再次尝试上一个命令之后.但同样的错误再次出现.
最佳答案
geograpy的setup.pydeclares
原文链接:https://www.f2er.com/python/533136.htmlnewspaper
as a dependency.这是setup.py中的错误;对于Python 3,依赖性必须是报纸3k.也许Python 3还有其他问题.
There is a pull request修复了Python 3的安装.