1、首先登录到服务器

ssh -t username@网址 -p   端口号

2、使用命令下载anaconda(我安装的版本比较老)

wget https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh

3、安装anaonda

sh ./Anaconda3-2021.05-Linux-x86_64.sh

4、可以直接enter、yes选择默认安装
5、键入conda看是否安装成功
6、如果显示conda命令不存在,还需要下一步(添加环境变量)(正常就看下一步)

sudo gedit ~/.bashrc

键入环境变量

export PATH=~/anaconda3/bin:$PATH

保存,运行:

source ~/.bashrc

7、添加源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
 
//设置搜索时显示通道地址
conda config --set show_channel_urls yes
————————————————
版权声明:本文为CSDN博主「云飞扬°」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_44706512/article/details/104652809

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
 
//设置搜索时显示通道地址
conda config --set show_channel_urls yes
————————————————
版权声明:本文为CSDN博主「云飞扬°」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_44706512/article/details/104652809

8、新建环境

conda create -n python37 python=3.7(2.7、3.6...)

9、激活新环境,以后遇到项目就可以新建不同的环境(建议不同的python版本安装不同的环境)

conda activate python37

10、利用pip去安装想要的软件即可
pip install tensorflow
pip install numpy
pip install matplotlib
pip install pandas

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐