这里写自定义目录标题
登陆
- 打开Mac自带的终端 输入 sudo -i 获取超级用户权限 输入密码
- ssh root@服务器IP
- 输入服务器密码
配置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