[英]Conflict while installing ggplot to conda python 3 environment
I tried to run 我试着跑
conda create --name test python=3
source activate test
conda install -c conda-forge ggplot=0.11.5
but after the last command I get 但是在最后一条命令之后我得到了
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.
I am able to run 我可以跑步
conda install -c bokeh ggplot=0.9.4
instead, but that is an older version. 而是一个较旧的版本。 I am not sure what would be a practical way of resolving this if I want to use the newer version of ggplot.
我不确定如果要使用较新版本的ggplot,解决该问题的实用方法是什么。
I could install the newer version in python 2.7 though. 我可以在python 2.7中安装较新的版本。
Running 'conda create --name test python=3' will create a Python 3.6 environment by default. 运行'conda create --name test python = 3'将默认创建一个Python 3.6环境。
If you take a look here: https://anaconda.org/conda-forge/ggplot/files you will see that the conda-forge version of ggplot is not compatible with Python 3.6. 如果您在此处查看: https ://anaconda.org/conda-forge/ggplot/files,您会发现ggplot的conda-forge版本与Python 3.6不兼容。 If you create an environment with Python 3.5 then you will be able to run this command again and successfully install your desired version of ggplot.
如果您使用Python 3.5创建环境,那么您将能够再次运行此命令并成功安装所需的ggplot版本。
conda create --name test1 python=3.5
source activate test1
conda install -c conda-forge ggplot=0.11.5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.