Linux下快速安装Anaconda

我们有时候往往会部署很多台PC上的Python环境,有很多重复的操作,为了减少我们的重复操作。分享一个很有利的工具 expect

具体脚本如下

#!/usr/bin/expect
#set the timeout
set timeout -1
#set the varables
set pwd 123

#start the proces
spawn bash Anaconda3-5.3.1-Linux-x86_64.sh
expect ">>>" { send "\ndddddddd"}
send "ddddddd"
expect ">>>" { send "yes\n" }
expect ">>>" { send "yes\n" }
expect ">>>" { send "\n" }
expect ">>>" { send "yes\n" }
expect ":" { send "123\n" }

interact

然后将这个写成一个脚本,install

chmod +x install 

./install

这里的123 为系统登录密码 换为自己的,

具体的一些指令解释请自行百度。这样的话,就可以做到快速无干预的安装Anaconda了

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值