macOS 软件

Homebrew

https://brew.sh

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

iTerm2

$ brew cask install iterm2

git

$ ssh-keygen -t rsa -b 4096 -C "iosdevlog@iosdevlog.com"
$ cat ~/.ssh/id_rsa.pub

添加 ~/.ssh/id_rsa.pubgithub

zsh

$ brew install zsh zsh-completions
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

vim

$ git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
$ sh ~/.vim_runtime/install_awesome_vimrc.sh

Python

安装 anaconda ,选 python3 版本

brew install python 安装 python3 代替默认 python

# python installed by brew is python3
$ brew install python
# need to use pip3 since we are using python3 
$ pip3 install --upgrade pip setuptools wheel
# install virtualenv & virtualenvwrapper
$ pip3 install virtualenv virtualenvwrapper

Add PATH to ~/.bash_profile and ~/.zshrc

export PATH=/usr/local/share/python:$PATH

创建虚拟环境

export WORKON_HOME=~/.Envs
mkdir -p $WORKON_HOME

添加以下 ~/.bash_profile and ~/.zshrc

# put all virtual environments in a centralized location
export WORKON_HOME=~/.Envs
# set environment variables
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3 
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv 
# install virtalenvwrapper
source /usr/local/bin/virtualenvwrapper.sh

使用 mkvirtualenv 创建虚拟环境

# create virtual env
mkvirtualenv <your_virtualenv_name>
# deactivate
deactivate
# activate
workon <your_virtualenv_name>

播放器 https://iina.io/

iina

参考

https://github.com/settings/keys
Setting up Python environment with Anaconda and Homebrew
patriciogonzalezvivo/PythonSetup.md

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容