【问题标题】:Conda cannot install pydot-ng with python3 (Unsatisfiable error)Conda 无法使用 python3 安装 pydot-ng(无法满足的错误)
【发布时间】:2018-01-01 11:28:08
【问题描述】:

我在 Ubuntu 16.04 LTS 上有 Anaconda 4.3.23。当我尝试使用

安装 pydot-ng 包时
conda install pydot-ng

我收到以下错误:

UnsatisfiableError: The following specifications were found to be in conflict:
- pydot-ng -> python 2.7* -> openssl 1.0.1*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.

在运行conda info pydot-ng 我明白了

pydot-ng 1.0.0.15 py27_0
------------------------
file name   : pydot-ng-1.0.0.15-py27_0.tar.bz2
name        : pydot-ng
version     : 1.0.0.15
build string: py27_0
build number: 0
channel     : defaults
size        : 45 KB
arch        : x86_64
date        : 2015-09-09
license     : MIT
md5         : 8b81a344723e64ec3545b5f030caca47
noarch      : None
platform    : linux
url         : https://repo.continuum.io/pkgs/free/linux-64/pydot-ng-
1.0.0.15-py27_0.tar.bz2
dependencies:
   pyparsing
   python 2.7*

pydot-ng 1.0.0.15 py34_0
------------------------
file name   : pydot-ng-1.0.0.15-py34_0.tar.bz2
name        : pydot-ng
version     : 1.0.0.15
build string: py34_0
build number: 0
channel     : defaults
size        : 46 KB
arch        : x86_64
date        : 2015-09-09
license     : MIT
md5         : 13e3a10b45edfb38d91a51d6b3ccabc7
noarch      : None
platform    : linux
url         : https://repo.continuum.io/pkgs/free/linux-64/pydot-ng-
1.0.0.15-py34_0.tar.bz2
dependencies:
   pyparsing
   python 3.4*

有什么问题? conda 不应该能够安装与 python 3.6 兼容的pydot-ng 1.0.0.15 py34_0 版本(我想)?

【问题讨论】:

    标签: python anaconda conda pydot


    【解决方案1】:

    这不是 conda 的工作方式 - 该包是为特定版本的 Python 构建的,除非包构建器特别说明它是一个通用包并且可以为多个版本安装。最简单的解决方案是创建一个新环境来安装这个包:

    conda create -n pydotng python=3.4 pydot-ng
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-07-07
      • 2018-07-21
      • 2020-05-30
      • 2019-08-20
      • 2014-12-08
      • 2023-03-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多