我在安装造假者时遇到了错误,该怎么办?

时间:2019-06-04 15:35:08

标签: python faker

在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.

3 个答案:

答案 0 :(得分:0)

线索在这里

  

这是一个distutils安装的项目

您可能已经使用os软件包管理器(例如apt)安装了此软件包。因此,您应该使用它来删除它。

关于特定主题。您可能要使用virtualenv来管理此类内容。

答案 1 :(得分:0)

首先使用sudo apt-get remove six卸载六个,然后再次安装Faker

答案 2 :(得分:0)

您可以使用--ignore-installed

忽略已安装的项目。

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