加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

无法在Ubuntu 16.04.5中安装Geograpy python软件包

发布时间:2020-12-17 17:37:39 所属栏目:Python 来源:网络整理
导读:我尝试了以下命令 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 python2Command "python set

我尝试了以下命令

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 newspaper as a dependency.这是setup.py中的错误;对于Python 3,依赖性必须是报纸3k.也许Python 3还有其他问题.

There is a pull request修复了Python 3的安装.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读