- install/uninstall
http://conda.pydata.org/docs/install/full.html
http://stackoverflow.com/questions/22585235/python-anaconda-how-to-safely-uninstall - 命令行啟用Anaconda Navigator
anaconda-navigator
https://docs.continuum.io/anaconda/navigator.html
- python獲取環境變量
import os #python導入os模塊
os.environ #查看操作系統中定義的環境變量
os.getenv('PATH') #獲取某個環境變量的值
http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/0013868321590543ff305fb9f9949f08d760883cc243812000
-
Mac OS增刪環境變量
1 . 首先查看shell版本
echo $SHELL #Mac OS X 10.3之后默認的是Bourne Shell
2 . 針對Bourne Shell添加環境變量
- 打開~/.bash_profile 文件
touch ~/.bash_profile
open -t ~/.bash_profile
- 新增環境變量
export PATH="$HOME/.rbenv/bin:$PATH"
- 讓配置生效
source ~/.bash_profile