Mac+阿里云服务器初体验

这里写自定义目录标题

登陆

  1. 打开Mac自带的终端 输入 sudo -i 获取超级用户权限 输入密码
  2. ssh root@服务器IP
  3. 输入服务器密码

配置Python环境

[root@iZwz9fp23rp007dy3wetf6Z /]# python
Python 2.7.5 (default, Jun 20 2019, 20:27:34) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello, world")
Hello, world
>>> exit()`在这里插入代码片`

安装python3.6,可以安装anaconda。

[root@iZwz9fp23rp007dy3wetf6Z /]# cd /usr/local/lib
[root@iZwz9fp23rp007dy3wetf6Z lib]# wget https://repo.continuum.io/archive/Anaconda3-5.0.0-Linux-x86_64.sh# 


100%[==============================================>] 548,789,360 4.01MB/s 用时 2m 22s 

2022-03-20 00:32:04 (3.68 MB/s) - 已保存 “Anaconda3-5.0.0-Linux-x86_64.sh” [548789360/548789360])
bash Anaconda3-5.0.0-Linux-x86_64.sh -u
WARNING: bzip2 does not appear to be installed this may cause problems below

Welcome to Anaconda3 5.0.0

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue

Do you accept the license terms? [yes|no]
[no] >>> 
Please answer 'yes' or 'no':'

Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Willow输入中

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值