安装miniconda的代码
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
再更新一下conda
conda update conda
conda update --all
conda install jupyter notebook pandas matplotlib netcdf4 holoviews geoviews
安装TensorFlow
我习惯直接安装gpu版的
conda install tensorflow-gpu
这样会直接安装cuda相关的包还有其他的相关包
安装torch的代码(重点)
pip install --upgrade torch
pip install --upgrade torchvision
这样会比较简单,就是下载的比较久
在CSDN上看见其他人分享jupyter lab,也安装了一下试试
先安装nodejs
conda install -c conda-forge nodejs
然后
pip install ipython(可能不用)
pip install jupyterlab
或者
conda install -c conda-forge jupyterlab
conda update jupyter_core jupyter_client
可以进行一下配置,不过我习惯直接用
参考:https://lyric.im/c/the-craft-of-selfteaching/T-appendix.jupyter-installation-and-setup
再安装jupyter lab的扩展插件,大家似乎都推荐这个,可以用来试试
jupyter labextension install @jupyterlab/toc
打开就直接输入
jupyter lab
再补充一份参考资料\(^o^)/~