我尝试了以下命令
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
已成功安装
我再次尝试上一个命令后。但是同样的错误再次出现。
答案 0 :(得分:2)
geograpy的setup.py
declares newspaper
as a dependency。这是setup.py
中的错误;对于Python 3,依赖性必须为newspaper3k
。也许Python 3还有其他问题。
There is a pull request修复了Python 3的安装。
答案 1 :(得分:0)
我在Ubuntu系统中将默认的python版本(2.7)更改为3.6。之后问题解决了。去这个 link