欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

用 jupyter 在 Win10 Ubuntu 子系统上安装 C++ 内核

最编程 2024-03-12 09:28:54
...

第一步 安装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了

接下来编写一个测试

大功告成