ssh连接服务器安装anaconda教程

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

  • 2
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值