--I don't use pyenv, virtualenv or annaconda.
--Not python3. It's not opencv3 either. --No virtual environment is used. ――I use zsh, but bash is the same.
# | OS/software/Library | version | Use | Remarks |
---|---|---|---|---|
1 | Mac OS X | EI Capitan | All | He is doing his best |
2 | Docker | Latest edition | All | |
3 | Python | 2.7 series | Machine learning and web part | I put it in Homebrew, not the existing one |
4 | Apache | 2.4 series | Web part | I'm using an existing one |
5 | PHP | 5.6 series | Image collection part | It can be in another language. I wrote it in Ruby at first, but I couldn't connect well due to proxy relations, so... |
6 | NumPy | 1.12 series | Matrix operation with OpenCV | |
7 | OpenCV | 2.4 series | Face detection from image | |
8 | TensorFlow | 1.1 system | Deep learning | |
9 | Flask | 0.12 series | Web part | Python web framework |
10 | WSGI | 0.12 series | Web part | I put it in from pip. Compatibility with Python when homebrew is included... |
brew update
tap
brew tap homebrew/python
brew tap homebrew/science
brew install python
which python
/usr/local/bin/python ※1
python
Python 2.7.13 (default, Apr 4 2017, 08:46:44)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
brew install numpy
brew install opencv
Python 2.7.13 (default, Apr 4 2017, 08:46:44)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'2.4.13.2'
>>>
pip install --ignore-installed --upgrade \
https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.1.0-py2-none-any.whl
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
pip install Flask
pip install mod_wsgi
.zshrc
if [ -d $(brew --prefix)/lib/python2.7/site-packages ];then
export PYTHONPATH=$(brew --prefix)/lib/python2.7/site-packages:$PYTHONPAT
fi
-I made a Dir en gray face classifier using TensorFlow --(1) Introduction -I made a face classifier for Dir en gray using TensorFlow-② Environment construction -I made a face classifier for Dir en gray using TensorFlow-③ Image collection -I made a face classifier for Dir en gray using TensorFlow-④ Face extraction -I made a face classifier for Dir en gray using TensorFlow-⑤ Learning data preparation -I made a Dir en gray face classifier using TensorFlow-⑥ Learning program -I made a face classifier for Dir en gray using TensorFlow-⑦ Learning model -I made a face classifier for Dir en gray using TensorFlow-⑧ Learning execution -I made a Dir en gray face classifier using TensorFlow --⑨ Data visualization -I made a Dir en gray face classifier using TensorFlow --⑩ Face classification test -I made a Dir en gray face classifier using TensorFlow-⑪ Web release preparation -I made a Dir en gray face classifier using TensorFlow --⑫ Web release -I tried to make a Dir en gray face classifier using TensorFlow --⑬ Playing (final)
Recommended Posts