基于arm64鲲鹏架构的JupyterLab cpp环境安装(一)

  • Post author:
  • Post category:其他




基于arm64架构的JupyterLab cpp环境安装(一)

本文首发于林克的编程小记:

前往查看

在这里插入图片描述



1. 安装conda环境

由于miniconda和anaconda官方没有arm64版本的,在github上面有修改版的archiconda3



可以通过wget下载,全程根据提示安装

cd /usr/local/src
wget https://github.com/Archiconda/build-tools/releases/download/0.2.3/Archiconda3-0.2.3-Linux-aarch64.sh
chmod +x Archiconda3-0.2.3-Linux-aarch64.sh
./Archiconda3-0.2.3-Linux-aarch64.sh



导入环境变量

source ~/.bashrc



查看conda版本

conda --v



修改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/
# 以上两条是Anaconda官方库的镜像

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
# 以上是Anaconda第三方库 Conda Forge的镜像

# for linux
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
# for legacy win-64
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
以上两条是Pytorch的Anaconda第三方镜像

conda config --set show_channel_urls yes



创建conda虚拟环境

conda create --name jupyter python
conda activate jupyter



2. 安装JupyterLab的准备

通过yum安装

yum install zlib-devel openssl-devel sqlite-devel



3. 安装JupyterLab



安装

conda install jupyterlab
配置
jupyter notebook --generate-config
jupyter notebook password ##回车后输入两次密码
nohup  jupyter lab  --ip=0.0.0.0 --port=8888  --allow-root  &

继续查看第二节:

基于arm64架构的JupyterLab cpp环境安装(二)

部分参考自鲲鹏社区:

《Ubuntu安装Anaconda3》


《服务器完整搭建jupyter 科学环境服务》

插图来自:


Illustration by Freepik Stories



版权声明:本文为weixin_45529627原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。