Sklearn:
pip install -U scikit-learn
TF:
pip install tensorflow-gpu
python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print te
KeyboardInterrupt
>>> import tensorflow as tf
>>> print tf.__version__
1.3.0
>>>
遇到问题:
THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
tensorflow-gpu from https://pypi.python.org/packages/1b/36/478c5cc40b280061130c30acad118940b442d35b36e11c7ffedd652db58f/tensorflow_gpu-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl#md5=bd1bc90cbd2957947c16b08a4535bc21:
Expected md5 bd1bc90cbd2957947c16b08a4535bc21
Got 93bc5601eaf68dae866cb637a6077f5e
是因为网络问题,多TRY 几次就OK
PROTOBUF
https://developers.google.com/protocol-buffers/ 对应下载需要版本,我用的3.1.0
vim build.sh
sudo apt-get install autoconf automake libtool curl make g++ unzip
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig
protoc --version 查看当前版本