MacOS 配置python环境

2018-08-14  本文已影响0人  Yao_Fairytale

Install Homebrew

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

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

export PATH=/usr/local/bin:$PATH

Install Python

brew install python

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

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

Install helpful modules

pip install virtualenv
pip install virtualenvwrapper
pip install numpy
brew install gcc
pip install scipy
brew install freetype
pip install matplotlib
python2 -m pip install ipython[all]
上一篇 下一篇

猜你喜欢

热点阅读