1

我正在尝试使用在 Windows 机器上为我的配置文件(env?)安装 condaconda install --name ptholeti onnx -c conda-forge

它因 pip、wheel 和 wincertstore 上的依赖项/版本问题而失败。

<removed output for brevity>
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
Examining setuptools:  <removed output for brevity>

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - onnx -> python[version='3.5.*|3.6.*']
  - onnx -> python[version='>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']

Your python: python=3.7

<removed output for brevity>

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

Package wincertstore conflicts for:
python=3.7 -> pip -> setuptools -> wincertstore[version='>=0.2']
onnx -> protobuf=3.5 -> setuptools -> wincertstore[version='>=0.2']
Package wheel conflicts for:
onnx -> python=3.6 -> pip -> wheel
python=3.7 -> pip -> wheel
Package pip conflicts for:
python=3.7 -> pip
onnx -> python=3.6 -> pip
Package setuptools conflicts for:
onnx -> protobuf=3.5 -> setuptools
python=3.7 -> pip -> setuptools
Package certifi conflicts for:
python=3.7 -> pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
onnx -> protobuf=3.5 -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
Package ca-certificates conflicts for:
python=3.7 -> openssl[version='>=1.1.1a,<1.1.2a'] -> ca-certificates
Note that strict channel priority may have removed packages required for satisfiability.

github 上的类似问题已被建议创建一个新的环境,似乎是因为 3.7 尚不支持所有必需的。但是这些问题已经存在一年多了,所以我想我遗漏了一些东西。

任何帮助/指导都会很棒。

conda info

     active environment : base
    active env location : C:\Users\ptholeti\AppData\Local\Continuum\anaconda3
            shell level : 1
       user config file : C:\Users\ptholeti\.condarc
 populated config files : C:\Users\ptholeti\.condarc
          conda version : 4.7.12
    conda-build version : 3.18.9
         python version : 3.7.4.final.0
       virtual packages :
       base environment : C:\Users\ptholeti\AppData\Local\Continuum\anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Users\ptholeti\AppData\Local\Continuum\anaconda3\pkgs
                          C:\Users\ptholeti\.conda\pkgs
                          C:\Users\ptholeti\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\ptholeti\AppData\Local\Continuum\anaconda3\envs
                          C:\Users\ptholeti\.conda\envs
                          C:\Users\ptholeti\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.4 Windows/10 Windows/10.0.16299
          administrator : False
             netrc file : None
           offline mode : False
4

2 回答 2

0

您可以尝试通过以下方式降级您的 conda env python 版本

conda install python=3.6.9

或任何适合您的版本 <3.7。然后再次安装onnx。

于 2019-11-27T22:50:02.020 回答
0

ONNX 中的构建过程最近进行了一些更新,以解决 Windows conda 环境中的构建问题。您可以按照此处的说明进行操作吗: https ://github.com/onnx/onnx#instructions-to-build-onnx-on-windows-in-anaconda-environment

于 2019-11-18T18:30:23.343 回答