简体   繁体   English

Conda无法使用python3安装pydot-ng(错误)

[英]Conda cannot install pydot-ng with python3 (Unsatisfiable error)

I have Anaconda 4.3.23 on Ubuntu 16.04 LTS. 我在Ubuntu 16.04 LTS上有Anaconda 4.3.23。 When I try to install pydot-ng package using 当我尝试使用安装pydot-ng软件包时

conda install pydot-ng

I get the following error: 我收到以下错误:

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.

Upon running conda info pydot-ng i see 运行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*

What is the problem? 问题是什么? Shouldn't conda be able to install the pydot-ng 1.0.0.15 py34_0 version which would be compatible with python 3.6 (I presume)? pydot-ng 1.0.0.15 py34_0不能安装与python 3.6兼容的pydot-ng 1.0.0.15 py34_0版本吗(我认为)?

That's not how conda works - the package is built for a specific version of Python, unless the package builder specifically says that its a universal package and can be installed for many versions. 这不是conda的工作方式-程序包是为特定版本的Python构建的,除非程序包构建器明确指出该程序包是通用程序包,并且可以安装多个版本。 The simplest solution to this is to create a new environment to install this package: 最简单的解决方案是创建一个新环境来安装此软件包:

conda create -n pydotng python=3.4 pydot-ng

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM