首页 > 解决方案 > 尝试安装 Conda 环境时出错

问题描述

尝试安装 Conda 环境时,我遇到了一系列错误。似乎我有很多冲突,但不确定我应该删除/更改/等等来修复它。

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Package python conflicts for:
pip -> wheel -> setuptools -> certifi[version='>=2016.09'] -> python[version='>=2.7,<2.8.0a0,>=3.5,<3.6.0a0,>=3.7,<3.8.0a0']
matplotlib=3.0.0 -> numpy -> mkl_random -> python[version='>=3.5,<3.6.0a0']
nb_conda -> nb_conda_kernels[version='>=2.0.0'] -> notebook[version='>=4.2.0'] -> prometheus_client -> twisted -> service_identity -> attrs[version='>=16.0.0'] -> hypothesis -> enum34 -> python[version='>=2.7,<2.8.0a0']
numpy=1.15.2 -> mkl_random -> python[version='>=3.5,<3.6.0a0']
python=3.5
scipy=1.1.0 -> numpy[version='>=1.11.3,<2.0a0,>=1.15.1,<2.0a0'] -> mkl_random -> python[version='>=3.5,<3.6.0a0']
Package setuptools conflicts for:
scipy=1.1.0 -> numpy[version='>=1.11.3,<2.0a0,>=1.15.1,<2.0a0'] -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel -> setuptools
numpy=1.15.2 -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel -> setuptools
nb_conda -> nb_conda_kernels[version='>=2.0.0'] -> notebook[version='>=4.2.0'] -> prometheus_client -> twisted -> service_identity -> attrs[version='>=16.0.0'] -> hypothesis -> enum34 -> python[version='>=2.7,<2.8.0a0'] -> pip -> wheel -> setuptools
pip -> wheel -> setuptools
matplotlib=3.0.0 -> numpy -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel -> setuptools
python=3.5 -> pip -> wheel -> setuptools
Package certifi conflicts for:
pip -> wheel -> setuptools -> certifi[version='>=2016.09']
matplotlib=3.0.0 -> numpy -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel -> setuptools -> certifi[version='>=2016.09']
nb_conda -> nb_conda_kernels[version='>=2.0.0'] -> notebook[version='>=4.2.0'] -> prometheus_client -> twisted -> service_identity -> attrs[version='>=16.0.0'] -> hypothesis -> enum34 -> python[version='>=2.7,<2.8.0a0'] -> pip -> wheel -> setuptools -> certifi[version='>=2016.09']
scipy=1.1.0 -> numpy[version='>=1.11.3,<2.0a0,>=1.15.1,<2.0a0'] -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel -> setuptools -> certifi[version='>=2016.09']
numpy=1.15.2 -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel -> setuptools -> certifi[version='>=2016.09']
python=3.5 -> pip -> wheel -> setuptools -> certifi[version='>=2016.09']
Package wheel conflicts for:
numpy=1.15.2 -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel
nb_conda -> nb_conda_kernels[version='>=2.0.0'] -> notebook[version='>=4.2.0'] -> prometheus_client -> twisted -> service_identity -> attrs[version='>=16.0.0'] -> hypothesis -> enum34 -> python[version='>=2.7,<2.8.0a0'] -> pip -> wheel
pip -> wheel
python=3.5 -> pip -> wheel
matplotlib=3.0.0 -> numpy -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel
scipy=1.1.0 -> numpy[version='>=1.11.3,<2.0a0,>=1.15.1,<2.0a0'] -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel
Package pip conflicts for:
nb_conda -> nb_conda_kernels[version='>=2.0.0'] -> notebook[version='>=4.2.0'] -> prometheus_client -> twisted -> service_identity -> attrs[version='>=16.0.0'] -> hypothesis -> enum34 -> python[version='>=2.7,<2.8.0a0'] -> pip
matplotlib=3.0.0 -> numpy -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip
pip
numpy=1.15.2 -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip
python=3.5 -> pip
scipy=1.1.0 -> numpy[version='>=1.11.3,<2.0a0,>=1.15.1,<2.0a0'] -> mkl_random -> python[version='>=3.5,<3.6.0a0'] -> pip

标签: pythonpython-3.xnumpypipanaconda

解决方案


显然,我试图设置的环境有一条线为我挂了,即

conda install -c anaconda nb_conda 

通过逐行遍历每个环境要求,我能够使其正常工作,而无需卸载或更改任何内容


推荐阅读