import this
- Beautiful is better than ugly.
- Explicit is better than implicit.
- Simple is better than complex.
- Complex is better than complicated.
- Flat is better than nested.
- Sparse is better than dense.
- Readability counts.
- Special cases aren't special enough to break the rules.
- Although practicality beats purity.
- Errors should never pass silently.
- Unless explicitly silenced.
- In the face of ambiguity, refuse the temptation to guess.
- There should be one-- and preferably only one --obvious way to do it.
- Although that way may not be obvious at first unless you're Dutch.
- Now is better than never.
- Although never is often better than right now.
- If the implementation is hard to explain, it's a bad idea.
- If the implementation is easy to explain, it may be a good idea.
- Namespaces are one honking great idea -- let's do more of those!
xcode-select -p
xcode-select --install
brew search python
brew install python3
brew upgrade python3
pip3 install --upgrade pip setuptools wheel
pip3 install wheel
pip3 install numpy
pip3 -h
pip3 list
pip3 show pip setuptools wheel
python3 -V
Python 3.x.x
Virtual environments are isolated spaces for our Python projects.
python3 -m venv my_env
source my_env/bin/activate
Feel free to use the command python
instead of python3, and pip
instead of pip3.
python -V
Python 3.x.x
deactivate
python -V
Python 2.x.x
source my_env/bin/activate
python -V
Python 3.x.x
brew search anaconda
caskroom/cask/anaconda
brew cask install caskroom/cask/anaconda
brew cask install miniconda
atom ~/.bash_profile
export PATH="/usr/local/anaconda3/bin:/usr/local/miniconda3/bin:$PATH"
Note: Cask anaconda installs files under /usr/local
. The presence of such
files can cause warnings when running brew doctor
, which is considered
to be a bug in Homebrew-Cask.
conda create --name tf python=3
python -V
Python 2.7.10
source activate tf
python -V
Python 3.6.1 :: Continuum Analytics, Inc.
conda info --envs
# conda environments:
#
tf * /usr/local/anaconda3/envs/tf
root /usr/local/anaconda3
conda list
# packages in environment at /usr/local/anaconda3/envs/tf:
#
openssl 1.0.2l 0
pip 9.0.1 py36_1
python 3.6.1 2
readline 6.2 2
setuptools 27.2.0 py36_0
sqlite 3.13.0 0
tk 8.5.18 0
wheel 0.29.0 py36_0
xz 5.2.2 1
zlib 1.2.8 3
conda search numpy
conda install --name tf numpy
cd ~/Sites/tf
source activate tf
anaconda-navigator
jupyter notebook