2017-04-20 60 views
0

我试图运行冲突而安装ggp​​lot以畅达的Python 3环境

conda create --name test python=3 
source activate test 
conda install -c conda-forge ggplot=0.11.5 

,但最后的命令后,我得到

Using Anaconda Cloud api site https://api.anaconda.org 
Fetching package metadata: ...... 
Solving package specifications: .... 

The following specifications were found to be in conflict: 
    - ggplot 0.11.5* -> python 2.7*|3.4*|3.5* 
    - pip (target=pip-9.0.1-py36_1.tar.bz2) -> python 2.7*|3.4*|3.5* 
    - pip (target=pip-9.0.1-py36_1.tar.bz2) -> setuptools 
    - python 3.6* 
    - setuptools (target=setuptools-27.2.0-py36_0.tar.bz2) -> python 2.7*|3.4*|3.5* 
    - wheel (target=wheel-0.29.0-py36_0.tar.bz2) -> python 2.7*|3.3*|3.4*|3.5*|3.6* 
    - wheel (target=wheel-0.29.0-py36_0.tar.bz2) -> setuptools 
Use "conda info <package>" to see the dependencies for each package. 

我能够运行

conda install -c bokeh ggplot=0.9.4 

代替,但这是一个旧版本。我不确定如果我想使用更新版本的ggplot,解决这个问题的实际方法是什么。

虽然我可以在Python 2.7中安装较新的版本。

回答

0

运行'conda create -name test python = 3'会默认创建一个Python 3.6环境。

如果你看看这里:https://anaconda.org/conda-forge/ggplot/files你会看到ggplot的conda-forge版本与Python 3.6不兼容。如果您使用Python 3.5创建环境,那么您将能够再次运行此命令并成功安装所需版本的ggplot。

conda create --name test1 python=3.5 
source activate test1 
conda install -c conda-forge ggplot=0.11.5