如何安装冲突的包?

时间:2018-04-09 14:25:29

标签: python anaconda conda

我的机器上安装了anacondapython 2.7 python 3

我正在尝试安装user-agentshttps://github.com/selwin/python-user-agents),我收到以下错误:

(base) C:\Users\john>conda install user-agents
Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:
  - user-agents
  - zict
Use "conda info <package>" to see the dependencies for each package.

我查看了常见问题解答https://conda.io/docs/user-guide/tasks/manage-python.html,但我不明白如何避免此问题。在两个包上运行-info命令显示

(base) C:\Users\john>conda info user-agents

user-agents 1.1.0 py27_0
------------------------
file name   : user-agents-1.1.0-py27_0.tar.bz2
name        : user-agents
version     : 1.1.0
build string: py27_0
build number: 0
channel     : https://conda.anaconda.org/conda-forge/win-64
size        : 16 KB
arch        : x86_64
constrains  : ()
license     : MIT
license_family: MIT
md5         : 98e6b4d286813445d0a2f222ca3f08fa
platform    : win32
subdir      : win-64
url         : https://conda.anaconda.org/conda-forge/win-64/user-agents-1.1.0-py27_0.tar.bz2
dependencies:
    python 2.7*
    ua-parser >=0.4.1

user-agents 1.0.1 py34_0
------------------------
file name   : user-agents-1.0.1-py34_0.tar.bz2
name        : user-agents
version     : 1.0.1
build string: py34_0
build number: 0
channel     : https://conda.anaconda.org/conda-forge/win-64
size        : 12 KB
arch        : x86_64
constrains  : ()
license     : MIT
md5         : 960c836c6c8fd5e7a126c15b39be5d35
platform    : win32
subdir      : win-64
url         : https://conda.anaconda.org/conda-forge/win-64/user-agents-1.0.1-py34_0.tar.bz2
dependencies:
    python 3.4*
    ua-parser >=0.4.1

user-agents 1.0.1 py27_1
------------------------
file name   : user-agents-1.0.1-py27_1.tar.bz2
name        : user-agents
version     : 1.0.1
build string: py27_1
build number: 1
channel     : https://conda.anaconda.org/conda-forge/win-64
size        : 13 KB
arch        : x86_64
constrains  : ()
license     : MIT
md5         : 9c829288911183766ddaa741f537b6ca
platform    : win32
subdir      : win-64
url         : https://conda.anaconda.org/conda-forge/win-64/user-agents-1.0.1-py27_1.tar.bz2
dependencies:
    python 2.7*
    ua-parser >=0.4.1

user-agents 1.0.1 py27_0
------------------------
file name   : user-agents-1.0.1-py27_0.tar.bz2
name        : user-agents
version     : 1.0.1
build string: py27_0
build number: 0
channel     : https://conda.anaconda.org/conda-forge/win-64
size        : 12 KB
arch        : x86_64
constrains  : ()
license     : MIT
md5         : 5f8bff4eecc0921d8ff6637c5214a69d
platform    : win32
subdir      : win-64
url         : https://conda.anaconda.org/conda-forge/win-64/user-agents-1.0.1-py27_0.tar.bz2
dependencies:
    python 2.7*
    ua-parser >=0.4.1

user-agents 1.0.1 py34_1
------------------------
file name   : user-agents-1.0.1-py34_1.tar.bz2
name        : user-agents
version     : 1.0.1
build string: py34_1
build number: 1
channel     : https://conda.anaconda.org/conda-forge/win-64
size        : 13 KB
arch        : x86_64
constrains  : ()
license     : MIT
md5         : 968c308d3f28527d010ab1ea7e08f043
platform    : win32
subdir      : win-64
url         : https://conda.anaconda.org/conda-forge/win-64/user-agents-1.0.1-py34_1.tar.bz2
dependencies:
    python 3.4*
    ua-parser >=0.4.1

有人可以告诉我这里有正确的conda命令吗? 谢谢!

0 个答案:

没有答案