- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 mac 脚本命令中的制表符
环境为bash 使用c风格的转义字符,即字符串前使用$sed -i "" -e $'s/$/\tgun/g' gun.txt参考文献: Using sed on Mac OS 10 to replace tab character in text files 在Mac OS 10上使用sed替换文本文件中的制表符
2020-08-27 17:02:20 791
原创 mac创建服务器连接
解决问题:查看远程服务器上的内容 传输文件方法安装依赖$ brew cask install osxfuse$ brew cask install sshfs #报错时,去除cask重新安装挂载与卸载$ mkdir local-file #本地文件夹$ sshfs user@hostname:/absolute/path/to/document local-file #挂载$ umount local-file #卸载参考文献:MacOS 使用 SSHF
2020-08-19 11:59:48 302
原创 TypeError: unsupported operand type(s) for -=: ‘Retry‘ and ‘int‘
pip安装时报错:TypeError: unsupported operand type(s) for -=: 'Retry' and 'int',OSError: [Errno 99] Cannot assign requested address解决方法如下,必要时取消index-url安装源的注释vi ~/.pip/pip.conf #没有时创建该文件[global]trusted-host = mirrors.aliyun.com#index-url = https://mirr.
2020-08-06 18:08:33 504
原创 Mac 使用brew安装软件
使用homebrew软件包管理工具进行安装时,经常会失败。可直接通过代理进行安装。ALL_PROXY=socks5://127.0.0.1:1086 brew cask install chromedriver通过查看shell解释器,修改配置文件% echo $SHELL/bin/zsh #输出结果% echo export ALL_PROXY=socks5://127.0.0.1:1086 >> ~/.zsh_profile参考文献: 解决 macOS Hom
2020-08-01 21:40:47 253
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人