Не удается установить ggplot с помощью conda-forge

Я пытаюсь установить ggplot с помощью conda-forge. Но это показывает некоторую ошибку. Подробное сообщение об ошибке приведено ниже.

(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

Пожалуйста, помогите мне с любым решением.

2 ответа

Решение

Я нашел альтернативу ggplot, который содержит все ggplotфункция. Это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

Чтобы ознакомиться с инструкциями по использованию, посетите https://plotnine.readthedocs.io/en/stable/index.html.

Разработка порта python ggplot yhat прекратилась в 2016 году. Кажется, что он совместим только сpandas<0.22 который предшествует python 3.7 и, таким образом, недоступен для python-3.7 на conda-forge.

Самый простой способ использовать его - установить в среду с интерпретатором python3.6.

Другие вопросы по тегам