Conda 无法使用 python3 安装 pydot-ng(不可满足的错误)
Conda cannot install pydot-ng with python3 (Unsatisfiable error)
我在 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
版本吗?
这不是 conda 的工作方式 - 该包是为特定版本的 Python 构建的,除非包构建器特别说明它是一个通用包并且可以为许多版本安装。最简单的解决方案是创建一个新环境来安装这个包:
conda create -n pydotng python=3.4 pydot-ng
我在 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
版本吗?
这不是 conda 的工作方式 - 该包是为特定版本的 Python 构建的,除非包构建器特别说明它是一个通用包并且可以为许多版本安装。最简单的解决方案是创建一个新环境来安装这个包:
conda create -n pydotng python=3.4 pydot-ng