简体   繁体   English

在仍然安装 MKL 版本的软件包的同时,conda-forge 是否可以优先于默认值?

[英]Can conda-forge have priority over defaults while still installing MKL versions of packages?

Documented Conda "best practices" is still to give conda-forge channel priority over defaults channel in environment.yml files.记录在案的 Conda“最佳实践”仍然是在environment.yml文件中将conda-forge通道优先于defaults通道。 Can I continue to give priority to conda-forge whilst still downloading any mkl optimized packages from the `defaults channel?我可以继续优先使用conda-forge mkl同时仍然从 `defaults 频道下载任何mkl优化包吗?

I have never encountered any problems giving defaults priority over conda-forge in my environment files so perhaps this suggested "best practice" is no longer addressing a real issue.我从来没有遇到任何问题,在我的环境文件中, defaults优先于conda-forge ,所以也许这个建议的“最佳实践”不再解决真正的问题。

Still, it would be good to know if there was a way to specify mkl in an environment file where conda-forge has higher priority than defaults .不过,最好知道是否有办法在mkl conda-forge mkl的优先级高于defaults的环境文件中指定mkl

conda-forge provides their own mkl optimized blas libaries that can be installed via a virtual package (see also: https://conda-forge.org/docs/maintainer/knowledge_base.html#switching-blas-implementation ). conda-forge 提供了自己的 mkl 优化的 blas 库,可以通过虚拟包安装(另见: https ://conda-forge.org/docs/maintainer/knowledge_base.html#switching-blas-implementation)。

environment.yaml环境.yaml

name: test_foo
channels:
  - conda-forge
  - defaults
dependencies:
  - "libblas=*=*mkl"
  - numpy
  - scipy

conda -n test_foo list conda -n test_foo 列表

ca-certificates           2019.11.28           hecc5488_0    conda-forge
certifi                   2019.11.28               py38_0    conda-forge
intel-openmp              2019.4                      233
libblas                   3.8.0                    14_mkl    conda-forge
libcblas                  3.8.0                    14_mkl    conda-forge
libcxx                    9.0.0                h89e68fa_1    conda-forge
libffi                    3.2.1             h6de7cb9_1006    conda-forge
libgfortran               4.0.0                         2    conda-forge
liblapack                 3.8.0                    14_mkl    conda-forge
llvm-openmp               9.0.0                h40edb58_0    conda-forge
mkl                       2019.4                      233
ncurses                   6.1               h0a44026_1002    conda-forge
numpy                     1.17.3           py38hde6bac1_0    conda-forge
openssl                   1.1.1d               h0b31af3_0    conda-forge
pip                       19.3.1                   py38_0    conda-forge
python                    3.8.0                hd366da7_5    conda-forge
readline                  8.0                  hcfe32e1_0    conda-forge
scipy                     1.4.0            py38h82752d6_0    conda-forge
setuptools                42.0.2                   py38_0    conda-forge
sqlite                    3.30.1               h93121df_0    conda-forge
tk                        8.6.10               hbbe82c9_0    conda-forge
wheel                     0.33.6                   py38_0    conda-forge
xz                        5.2.4             h1de35cc_1001    conda-forge
zlib                      1.2.11            h0b31af3_1006    conda-forge

Note that only the mkl implementation of blas is installed, but not openblas.请注意,仅安装了 blas 的 mkl 实现, blas安装 openblas。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Conda 无法从 conda-forge 中可用的 requirements.txt 安装包,尽管 package 存在于 conda-forge 中 - Conda can't install packages from requirements.txt available in conda-forge, although package exists in conda-forge 安装 conda 包时出错:conda.core.link:_execute(696):安装包“conda-forge::qt-5.9.7-h506e8af_3”时出错 - Error installing conda packages: conda.core.link:_execute(696): An error occurred while installing package 'conda-forge::qt-5.9.7-h506e8af_3' 在 conda-forge 中找不到旧版本的 Python - Older versions of Python not found in conda-forge Conda 软件包安装 [Errno 13] 安装 conda-forge::protobuf-3.8.0 时权限被拒绝 - Conda package install [Errno 13] Permission denied while installing conda-forge::protobuf-3.8.0 使用conda-forge包替换pip包的简便方法 - Easy way to replace pip packages with conda-forge packages 除非必要,否则如何避免使用 conda-forge 包? - How to avoid using conda-forge packages unless necessary? 错误 conda.core.link:_execute(502): 安装包 'conda-forge::astor-0.7.1-py_0' 时出错 - ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::astor-0.7.1-py_0' 安装conda-forge mlxtend-安装mlxtend时出错-权限被拒绝 - Install conda-forge mlxtend - Error in installing mlxtend - Permission Denied 将Conda更新到4.6.1以集成PowerShell后,Conda无法安装Conda-forge软件包 - Conda Not Able to Install Conda-forge Packages After Updating Conda to 4.6.1 to Integrate PowerShell 当上传者为“ conda-forge”时,更新conda-forge中的软件包 - Update package in conda-forge, when uploader is “conda-forge”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM