mac笔记本安装brew selenium使用python环境爬虫

1. brew

参考:https://www.cnblogs.com/zoulifeng2017/p/7514139.html

Homebrew官网 http://brew.sh/index_zh-cn.html

运行命令:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

brew用法简要说明:

brew update  更新brew;

brew install {应用名,如git} 安装软件

brew cask install {应用名,如git} 也是下载安装,与上面的区别,请查看https://www.zhihu.com/question/22624898

更多用法请 brew help

但是在安装brew是出现错误:

remote: Counting objects: 97646, done.

remote: Compressing objects: 100% (57/57), done.

error: RPC failed; curl 56 SSLRead() return error -9806iB/s       

fatal: The remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed

Failed during: git fetch origin master:refs/remotes/origin/master --tags --force

运行命令:

ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

正常下载中。应该是和网络协议有关,需要添加一个insecure选项。

对应卸载命令:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

查看版本:

PeterdeMBP:test_m peteryoung$ brew -v

Homebrew 1.5.4

Homebrew/homebrew-core (git revision f51b; last commit 2018-02-23)

2.安装selenium

运行命令:brew install selenium

报错提示selenium no available

运行命令:brew install selenium-server-standalone

提示需要翻墙。


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值