简体   繁体   English

无法使用 conda-forge 安装 ggplot

[英]Cannot install ggplot with conda-forge

I am trying to install ggplot with conda-forge.我正在尝试使用 conda-forge 安装 ggplot。 But it is showing some certain error.但它显示了一些特定的错误。 Details error message is given below.详细错误信息如下。

(base) C:\Users\ASUS>conda install -c conda-forge ggplot=0.11.5
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - ggplot=0.11.5 -> python[version='2.7.*|3.5.*|3.6.*|3.4.*']

Your python: python=3.7

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your CUDA driver:

  - feature:/win-64::__cuda==11.0=0
  - feature:|@/win-64::__cuda==11.0=0

Your installed CUDA driver is: 11.0

Please help me with any solution.请帮助我解决任何问题。

I have found an alternative of ggplot , which contains all ggplot function.我找到了ggplot的替代品,其中包含所有ggplot function。 It's plotnine .这是plotnine To install plotnine安装plotnine

# Using pip
$ pip install plotnine         # 1. should be sufficient for most
$ pip install 'plotnine[all]'  # 2. includes extra/optional packages

# Or using conda
$ conda install -c conda-forge plotnine

For usage guideline please visit https://plotnine.readthedocs.io/en/stable/index.html有关使用指南,请访问https://plotnine.readthedocs.io/en/stable/index.html

The development of yhat's ggplot python port stopped in 2016 . yhat 的 ggplot python 端口的开发于 2016 年停止 It seems that it is only compatible with pandas<0.22 which predates python 3.7 and is thus not available for python-3.7 on conda-forge.似乎它只与pandas<0.22兼容,它早于 python 3.7,因此不适用于 conda-forge 上的 python-3.7。

The easiest way to use it is to install it into an environment with a python3.6 interpreter.使用它的最简单方法是将其安装到具有 python3.6 解释器的环境中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM