Win10 Ubuntu子系统下jupyter安装C++ kernel

第一步 安装Miniconda3

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x 
bash Miniconda3-latest-Linux-x86_64.sh 


一路选择安装好

第二步 设置Conda源为中科大源(必要,不然会因为网速慢无法下载)

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --set show_channel_urls yes 

替换默认镜像源

conda config --set channel_alias https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

第三步 安装 jupyter notebook

conda install jupyter

第四步 安装 xeus-cling

conda install xeus-cling -c conda-forge

第五步 打开jupyter notebook

jupyter notebook

浏览器打开网址以后可以看到我们已经可以使用C++的kernel了
 接下来编写一个测试  大功告成

 
来源: 迅闻网

猜你喜欢

转载自www.cnblogs.com/vwvwvwgwgvervae/p/12823565.html
今日推荐