python - 无法在 Linux 上使用 pip 安装 Ropper

标签 python linux pip

我正在尝试编写一些需要 ropper 的脚本。 (仅通过 pip 安装) 我该如何解决这个问题?

我正在尝试在Linux上安装它,尝试升级setuptools,安装旧版本并按照此操作,只有一个主题,我发现: the link !

这是错误消息:

$ 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/

最佳答案

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"

关于python - 无法在 Linux 上使用 pip 安装 Ropper,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56875400/

相关文章:

python - 在 Django ListView 中禁用结果计数

linux - 在另一个声音文件中查找一个声音文件

virtualenv - 无法卸载 virtualenv 内的包

python - 字典的键在添加时顺序不对?

python - 完成任务的 python 代码时出现问题

python - OverflowError : (34, 'Result too large' ) 计算 e^-(b*dE)

linux - 如何同时运行两个程序,但它们位于不同的目录中? (Tcsh 外壳)

c - 命令行参数存储在哪个内存段中?

python - 如何卡住需求中的包版本?

python - 安装后 awscli 未添加到路径