开发者社区> 问答> 正文

无法在Linux上使用pip安装Ropper

我试图写一些脚本,需要ropper。(仅通过pip安装)如何解决此问题?

我试图在Linux上安装它,试图升级setuptools,安装旧版本,然后按照这个,我发现了一个主题: 链接!

这是错误消息:

$ pip install ropper

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting ropper
  Using cached https://files.pythonhosted.org/packages/94/b1/922dfab5083ff439ce70358c7f3e49185c54e6ea6ee2bb7cd292e63eac06/ropper-1.12.1.tar.gz
Collecting filebytes>=0.9.18 (from ropper)
  Using cached https://files.pythonhosted.org/packages/0b/3a/9fc0c62bd74583137a8bbc3c8020d6a8234b9cf8bc1e99fe929688b19093/filebytes-0.9.20.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-d44HeD/filebytes/setup.py", line 3, in <module>
        from pathlib import Path
    ImportError: No module named pathlib
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-d44HeD/filebytes/

展开
收起
祖安文状元 2020-01-06 15:17:47 1170 0
1 条回答
写回答
取消 提交回答
  • filebytes==0.9.20版本与Python 2不兼容;软件包维护者已经解决了这个问题,但是新版本尚未上传到PyPI。filebytes现在仅限于以前的版本:

    $ pip install "filebytes<0.9.20" ropper
    
    

    下一个版本(0.9.21)发布后,您可以根据需要进行更新:

    $ pip install --upgrade "filebytes>0.9.20"
    
    2020-01-06 15:17:57
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Alibaba Cloud Linux 3 发布 立即下载
ECS系统指南之Linux系统诊断 立即下载
ECS运维指南 之 Linux系统诊断 立即下载