2017-07-26 44 views
0

我在Ubuntu 16.04 LTS上安裝了Anaconda 4.3.23。當我嘗試使用Conda無法使用python3安裝pydot-ng(Unsatisfiable error)

conda install pydot-ng 

我收到以下錯誤,安裝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能夠安裝0123.版本,這將與python 3.6兼容(我假設)?

回答

1

這不是conda的工作原理 - 該軟件包是爲特定版本的Python構建的,除非軟件包構建器明確說它是一個通用軟件包,可以安裝許多版本。最簡單的解決方案是創建一個安裝此軟件包的新環境:

conda create -n pydotng python=3.4 pydot-ng