[英]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.