【问题标题】:Unable to install prettytable in anaconda无法在 anaconda 中安装 prettytable
【发布时间】:2019-03-13 00:06:00
【问题描述】:

我想在 anaconda 中安装 prettytable 包。 要使用 conda 安装此软件包,我已运行:

conda install -c synthicity prettytable

并收到以下错误:

(base) C:\Users\hp>conda install -c synthicity prettytable
Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:
  - anaconda==5.2.0=py36_3
  - prettytable
Use "conda info <package>" to see the dependencies for each package.

我不知道这是什么冲突。并且找不到任何解决此问题的方法。有人可以帮帮我吗?

【问题讨论】:

  • 错误信息似乎很清楚 - anaconda 包和 prettytable 包之间存在冲突。您需要创建一个不包含 anaconda 包的新环境才能安装 prettytable 包。

标签: python anaconda jupyter-notebook prettytable


【解决方案1】:

以管理员身份运行 Anaconda 提示符并运行此命令

pip 安装 PrettyTable

仅适用于窗口用户。

【讨论】:

  • 我建议安装 PTable,它是 Prettytable 的一个 fork 副本,但功能更多。
【解决方案2】:

尝试以下方法之一

1) conda install -c conda-forge prettytable
2) conda install -c conda-forge/label/gcc7 prettytable

第一个对我有用。

【讨论】:

    猜你喜欢
    • 2018-06-19
    • 2020-01-23
    • 2019-03-07
    • 2017-07-29
    • 1970-01-01
    • 2016-01-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多