执行easy_install bson时出现错误error: Could not find required distribution python-date

eisldkw 2020-06-27 03:33:35
执行easy_install bson时出现错误 error: Could not find required distribution python-dateutil>=2.4.0

详细过程如下:

[root@localhost /]# easy_install bson
Searching for bson
Reading https://pypi.python.org/simple/bson/
Best match: bson 0.5.10
Downloading https://files.pythonhosted.org/packages/4d/53/7c534a38850f2252275d7f949aed2219095e90df1e2d180a9c8ed139e499/bson-0.5.10.tar.gz#sha256=d6511b2ab051139a9123c184de1a04227262173ad593429d21e443d6462d6590
Processing bson-0.5.10.tar.gz
Writing /tmp/easy_install-wIMuz9/bson-0.5.10/setup.cfg
Running bson-0.5.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wIMuz9/bson-0.5.10/egg-dist-tmp-6qfifA
zip_safe flag not set; analyzing archive contents...
Adding bson 0.5.10 to easy-install.pth file

Installed /usr/lib/python2.7/site-packages/bson-0.5.10-py2.7.egg
Processing dependencies for bson
Searching for python-dateutil>=2.4.0
Reading https://pypi.python.org/simple/python-dateutil/
Best match: python-dateutil 2.8.1
Downloading https://files.pythonhosted.org/packages/be/ed/5bbc91f03fa4c839c4c7360375da77f9659af5f7086b7a7bdda65771c8e0/python-dateutil-2.8.1.tar.gz#sha256=73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c
Processing python-dateutil-2.8.1.tar.gz
Writing /tmp/easy_install-kkPFkD/python-dateutil-2.8.1/setup.cfg
Running python-dateutil-2.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-kkPFkD/python-dateutil-2.8.1/egg-dist-tmp-ivtsuQ
/tmp/easy_install-kkPFkD/python-dateutil-2.8.1/setup.py:20: UserWarning: python_requires requires setuptools version > 24.3
UserWarning)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'use_scm_version'
warnings.warn(msg)
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
warning: install_lib: 'build/lib' does not exist -- no Python modules to install


zip_safe flag not set; analyzing archive contents...
Adding UNKNOWN 0.0.0 to easy-install.pth file

Installed /usr/lib/python2.7/site-packages/UNKNOWN-0.0.0-py2.7.egg
error: Could not find required distribution python-dateutil>=2.4.0

请问如何处理。还有那几行绿色的warn 会有什么影响。谢谢大家
...全文
165 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
eisldkw 2020-06-28
  • 打赏
  • 举报
回复
引用 1 楼 欢乐的小猪 的回复:
warning可以不用管 error表示你需要安装包python-dateutil,版本必须>=2.4.0
非常感谢。请问如何处理。
欢乐的小猪 2020-06-27
  • 打赏
  • 举报
回复
warning可以不用管 error表示你需要安装包python-dateutil,版本必须>=2.4.0

37,720

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧