【问题标题】:I'm getting an errror while installing faker, what should I do?我在安装faker时遇到错误,我该怎么办?
【发布时间】:2019-06-04 15:35:08
【问题描述】:

我在 python 中安装 Faker 时遇到错误,我该怎么办?

错误:

six-1.12.0-py2.py3-none-any.whl
ERROR: matplotlib 1.3.1 requires nose, which is not installed.
ERROR: matplotlib 1.3.1 requires tornado, which is not installed.
Installing collected packages: six, python-dateutil, Faker
  Found existing installation: six 1.4.1
ERROR: Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

【问题讨论】:

  • pip install Faker --ignore-installed 6 --user ?或者没有 --user 这可能会起作用

标签: python faker


【解决方案1】:

线索在这里

这是一个distutils安装的项目

你可能已经安装了这个包,使用类似 os 包管理器的东西(类似apt)。因此,您应该使用它来删除它。

关于特定主题。你可能想使用 virtualenv 来管理这类东西。

【讨论】:

    【解决方案2】:

    先用sudo apt-get remove six卸载6个,然后再安装Faker

    【讨论】:

      【解决方案3】:

      您可以使用--ignore-installed忽略已安装的项目

      例如,试试pip install Faker --ignore-installed

      【讨论】:

        猜你喜欢
        • 2017-10-13
        • 2020-10-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-07-05
        • 1970-01-01
        • 1970-01-01
        • 2021-08-06
        相关资源
        最近更新 更多