【问题标题】:dependency conflict conda create/install numpy依赖冲突 conda 创建/安装 numpy
【发布时间】:2019-03-10 04:02:03
【问题描述】:

我正在尝试使用以下特定库 py36h1d66e8a_0 构建 conda 环境:

conda create -n test numpy==1.15.1=py36h1d66e8a_0 

结果:

UnsatisfiableError: The following specifications were found to be in conflict:
  - numpy==1.15.1=py36h1d66e8a_0
Use "conda search <package> --info" to see the dependencies for each package.

即使我可以独立安装包的所有依赖项,它也不允许我安装它。我怎样才能找到真正的依赖冲突? 同样对于上下文,这是在带有 conda 4.6.2 的 docker alpine 容器上运行的,并且它以前正在运行,所以我想知道这是否与操作系统库包更新有关...

Conda 包依赖:

numpy 1.15.1 py36h1d66e8a_0
---------------------------
file name   : numpy-1.15.1-py36h1d66e8a_0.tar.bz2
name        : numpy
version     : 1.15.1
build       : py36h1d66e8a_0
build number: 0
size        : 37 KB
license     : BSD 3-Clause
subdir      : linux-64
url         : https://repo.anaconda.com/pkgs/main/linux-64/numpy-1.15.1-py36h1d66e8a_0.tar.bz2
md5         : 2ed762dd94be9404a3161c7c76f9705f
timestamp   : 2018-08-27 21:58:49 UTC
dependencies: 
  - blas 1.0 mkl
  - libgcc-ng >=7.3.0
  - libgfortran-ng >=7,<8.0a0
  - mkl_fft >=1.0.4
  - mkl_random
  - numpy-base 1.15.1 py36h81de0dd_0
  - python >=3.6,<3.7.0a0
  - mkl >=2018.0.3,<2019.0a0

安装了所有依赖项的示例环境:

blas                      1.0                         mkl  
ca-certificates           2019.1.23                     0  
certifi                   2018.11.29               py36_0  
intel-openmp              2019.1                      144  
libedit                   3.1.20181209         hc058e9b_0  
libffi                    3.2.1                hd88cf55_4  
libgcc-ng                 8.2.0                hdf63c60_1  
libgfortran-ng            7.3.0                hdf63c60_0  
libstdcxx-ng              8.2.0                hdf63c60_1  
mkl                       2018.0.3                      1  
mkl_fft                   1.0.6            py36h7dd41cf_0  
mkl_random                1.0.1            py36h4414c95_1  
ncurses                   6.1                  he6710b0_1  
numpy                     1.15.1           py36h3b04361_0  
numpy-base                1.15.1           py36h81de0dd_0  
openssl                   1.1.1b               h7b6447c_1  
pip                       19.0.3                   py36_0  
python                    3.6.7                h0371630_0  
readline                  7.0                  h7b6447c_5  
setuptools                40.8.0                   py36_0  
sqlite                    3.26.0               h7b6447c_0  
tk                        8.6.8                hbc83047_0  
wheel                     0.33.1                   py36_0  
xz                        5.2.4                h14c3975_4  
zlib                      1.2.11               h7b6447c_3 

conda install 在这个环境中会产生同样的错误:

UnsatisfiableError: The following specifications were found to be in conflict:
  - numpy==1.15.1=py36h1d66e8a_0
Use "conda search <package> --info" to see the dependencies for each package.

【问题讨论】:

    标签: numpy conda alpine miniconda


    【解决方案1】:

    您应该从Here 下载所需的文件。并从下载的文件夹中,给出这个命令。你做错了。

    prml@prml-h270-gaming-4:~$ conda create -n test numpy-1.15.1-py37h1d66e8a_0.tar.bz2.
    

    它会起作用的 see this

    【讨论】:

      猜你喜欢
      • 2021-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-24
      • 2017-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多