配置conda+intelpython3
系统为centos 7.0
安装conda
安装wget
从清华源下载Anaconda安装脚本
1
| wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.03-Linux-x86_64.sh
|
安装bzip2
安装Anaconda
1
| bash Anaconda3-2019.03-Linux-x86_64.sh
|
除非自己有自定义需求,一般一路ENTER,一路选yes
刷新系统环境变量
1
| source ~/.bashrc # 一般刷新完后出现(base)可以说明安装成功
|
安装完成的检测
1 2
| conda activate # 进入conda环境 出现(base)则说明安装成功 conda deactivate # 退出conda环境
|
安装intelpython3
更新conda至最新版
通知conda使用清华源的软件包
1 2
| # 进入清华源的镜像网站,找到核心python3的分发包,右击选择复制链接地址 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/intel/linux-64/intelpython3_core-2019.5-0.tar.bz2
|
若要查看已有channels
1
| conda config --get channels
|
若要删除已有channels
1
| conda config --remove channels <url>
|
安装英特尔® Python* 分发包(二选一)
1 2
| conda create -n idp intelpython3_core python=3 # 安装核心python3的环境 conda create -n idp intelpython3_full python=3 # 安装完整python3的环境(channels的链接也要更改)
|
激活环境
*若要后续再安装其他的库
参考内容:
https://zhuanlan.zhihu.com/p/64930395
https://software.intel.com/zh-cn/articles/using-intel-distribution-for-python-with-anaconda
Author:
InanisV
Permalink:
http://InanisV.github.io/2019/10/02/配置conda-intelpython3/
License:
Copyright (c) 2019 CC-BY-NC-4.0 LICENSE
Slogan:
Do you believe in DESTINY?