Mac M1及以上芯片在Ubuntu上使用conda安装JupyterLab
1.下载最新版本的Miniconda安装包:
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh
2. 运行Miniconda安装器并按照屏幕上的提示操作:
bash Miniconda3-latest-Linux-aarch64.sh
3. 关闭并重新打开终端。
4. 使用以下命令禁用conda的自动激活基本环境:
conda config --set auto_activate_base false
5. 激活基本环境:
conda activate base
6.使用conda安装所需的Python库:
conda install matplotlib pandas scipy sympy
conda install jupyter
7.从conda-forge社区存储库安装JupyterLab的拼写检查器扩展:
conda install jupyterlab-spellchecker -c conda-forge
8.安装Octave内核:
conda install octave_kernel -c conda-forge
9. 安装C++内核(xeus-cling):
conda install xeus-cling -c conda-forge
完成以上步骤后,您将拥有一个完整的JupyterLab环境,其中包括Python库、拼写检查器扩展以及Octave和C++内核。现在,您可以使用以下命令启动JupyterLab:
jupyter lab
然后,浏览器将自动打开一个新选项卡,显示JupyterLab界面。在这里,您可以创建和编辑Jupyter笔记本,运行Python、Octave和C++代码等。