Mac 配置环境

安装pip:

easy_install  pip -i https://pypi.tuna.tsinghua.edu.cn/simple

pip换源:

/Users/你的用户名/.config/pip/pip.conf

pip.conf文件内容

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/

$HOME 相当于~均代表username路径

Mac 显示隐藏文件

command+shift+.

Mac 剪切文件

 Command+C 
 Command +Option+V

Mac 常用命令
https://www.jianshu.com/p/78fbaf22c357

获取su权限

sudo su
passwd
su
exit

python 2.7安装虚拟环境

pip install virtualenv

Mac Terminal 暂停进程

control+z

Mac Terminal 继续进程

fg

Mac Terminal 终止进程

command+.

Mac Terminal 走代理
shell 当前窗口及其子窗口

export ALL_PROXY=socks5://127.0.0.1:1080

.zshrc 当前用户永久
etc/profie 所有用户永久

Mac 无法修改的文件

先复制一份到桌面,修改之后,再返回去覆盖即可

安装HomeBrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值