在conda上安装onnx库失败并出现版本问题

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

由于在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上使用类似的问题来创建一个新的env,这似乎是因为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
kotoko520 回答:在conda上安装onnx库失败并出现版本问题

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

,

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

conda install python=3.6.9

或任何适合您的

本文链接:https://www.f2er.com/3167784.html

大家都在问