applejack:~ hqin$ sudo easy_install pip
Password:
Searching for pip
Best match: pip 9.0.1
Adding pip 9.0.1 to easy-install.pth file
Installing pip script to /anaconda3/bin
Installing pip3 script to /anaconda3/bin
Installing pip3.6 script to /anaconda3/bin
Using /anaconda3/lib/python3.6/site-packages
Processing dependencies for pip
Finished processing dependencies for pip
applejack:~ hqin$
applejack:~ hqin$ pip install --upgrade virtualenv
Collecting virtualenv
Downloading https://files.pythonhosted.org/packages/b6/30/96a02b2287098b23b875bc8c2f58071c35d2efe84f747b64d523721dc2b5/virtualenv-16.0.0-py2.py3-none-any.whl (1.9MB)
100% |████████████████████████████████| 1.9MB 764kB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-16.0.0
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
applejack:~ hqin$
applejack:~ hqin$ virtualenv --system-site-packages -p python3 tensorflow
Running virtualenv with interpreter /anaconda3/bin/python3
Using base prefix '/anaconda3'
New python executable in /Users/hqin/python3/bin/python3
Also creating executable in /Users/hqin/python3/bin/python
Installing setuptools, pip, wheel...done.
applejack:~ hqin$
applejack:~ hqin$ cd python3/
applejack:python3 hqin$ ls
bin lib
include pip-selfcheck.json
applejack:python3 hqin$ ls bin/activate
bin/activate
applejack:python3 hqin$
applejack:python3 hqin$ pwd
/Users/hqin/python3
applejack:python3 hqin$ source ./bin/activate
(python3) applejack:python3 hqin$
(python3) applejack:python3 hqin$
(python3) applejack:python3 hqin$
(python3) applejack:python3 hqin$ easy_install -U pip
Searching for pip
Reading https://pypi.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl#sha256=717cdffb2833be8409433a93746744b59505f42146e8d37de6c62b430e25d6d7
Best match: pip 10.0.1
Processing pip-10.0.1-py2.py3-none-any.whl
Installing pip-10.0.1-py2.py3-none-any.whl to /Users/hqin/python3/lib/python3.6/site-packages
writing requirements to /Users/hqin/python3/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg/EGG-INFO/requires.txt
Adding pip 10.0.1 to easy-install.pth file
Installing pip script to /Users/hqin/python3/bin
Installing pip3 script to /Users/hqin/python3/bin
Installing pip3.6 script to /Users/hqin/python3/bin
Installed /Users/hqin/python3/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg
Processing dependencies for pip
Finished processing dependencies for pip
(python3) applejack:python3 hqin$ pip3 install --upgrade tensorflow
Collecting tensorflow
Downloading https://files.pythonhosted.org/packages/03/ad/d732a5d9d50bfcd8aeb6e4a266065a8868829388e4e2b529ff689f1fc923/tensorflow-1.8.0-cp36-cp36m-macosx_10_11_x86_64.whl (46.5MB)
100% |████████████████████████████████| 46.5MB 886kB/s
Collecting tensorboard<1.9.0,>=1.8.0 (from tensorflow)
Downloading https://files.pythonhosted.org/packages/59/a6/0ae6092b7542cfedba6b2a1c9b8dceaf278238c39484f3ba03b03f07803c/tensorboard-1.8.0-py3-none-any.whl (3.1MB)
100% |████████████████████████████████| 3.1MB 7.8MB/s
Collecting gast>=0.2.0 (from tensorflow)
Downloading https://files.pythonhosted.org/packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz
Requirement not upgraded as not directly required: wheel>=0.26 in ./lib/python3.6/site-packages (from tensorflow) (0.31.1)
Collecting protobuf>=3.4.0 (from tensorflow)
Downloading https://files.pythonhosted.org/packages/6d/7e/51c91b28cb8446ebd7231d375a2025bca4c59d15ddc0cf2dd0867b400cd7/protobuf-3.6.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 8.0MB/s
Collecting termcolor>=1.1.0 (from tensorflow)
Downloading https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Collecting astor>=0.6.0 (from tensorflow)
Downloading https://files.pythonhosted.org/packages/b2/91/cc9805f1ff7b49f620136b3a7ca26f6a1be2ed424606804b0fbcf499f712/astor-0.6.2-py2.py3-none-any.whl
Collecting absl-py>=0.1.6 (from tensorflow)
Downloading https://files.pythonhosted.org/packages/57/8d/6664518f9b6ced0aa41cf50b989740909261d4c212557400c48e5cda0804/absl-py-0.2.2.tar.gz (82kB)
100% |████████████████████████████████| 92kB 14.1MB/s
Collecting grpcio>=1.8.6 (from tensorflow)
Downloading https://files.pythonhosted.org/packages/7e/a9/daef33ec8a83eb1c34498f947d4447d5728d91c7374e4b78465c7c14e99a/grpcio-1.13.0-cp36-cp36m-macosx_10_7_intel.whl (1.9MB)
100% |████████████████████████████████| 1.9MB 6.0MB/s
Requirement not upgraded as not directly required: numpy>=1.13.3 in /anaconda3/lib/python3.6/site-packages (from tensorflow) (1.14.0)
Requirement not upgraded as not directly required: six>=1.10.0 in /anaconda3/lib/python3.6/site-packages (from tensorflow) (1.11.0)
Collecting bleach==1.5.0 (from tensorboard<1.9.0,>=1.8.0->tensorflow)
Downloading https://files.pythonhosted.org/packages/33/70/86c5fec937ea4964184d4d6c4f0b9551564f821e1c3575907639036d9b90/bleach-1.5.0-py2.py3-none-any.whl
Collecting html5lib==0.9999999 (from tensorboard<1.9.0,>=1.8.0->tensorflow)
Downloading https://files.pythonhosted.org/packages/ae/ae/bcb60402c60932b32dfaf19bb53870b29eda2cd17551ba5639219fb5ebf9/html5lib-0.9999999.tar.gz (889kB)
100% |████████████████████████████████| 890kB 10.6MB/s
Requirement not upgraded as not directly required: werkzeug>=0.11.10 in /anaconda3/lib/python3.6/site-packages (from tensorboard<1.9.0,>=1.8.0->tensorflow) (0.14.1)
Collecting markdown>=2.6.8 (from tensorboard<1.9.0,>=1.8.0->tensorflow)
Downloading https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl (78kB)
100% |████████████████████████████████| 81kB 13.3MB/s
Requirement not upgraded as not directly required: setuptools in ./lib/python3.6/site-packages (from protobuf>=3.4.0->tensorflow) (39.2.0)
Building wheels for collected packages: gast, termcolor, absl-py, html5lib
Running setup.py bdist_wheel for gast ... done
Stored in directory: /Users/hqin/Library/Caches/pip/wheels/9a/1f/0e/3cde98113222b853e98fc0a8e9924480a3e25f1b4008cedb4f
Running setup.py bdist_wheel for termcolor ... done
Stored in directory: /Users/hqin/Library/Caches/pip/wheels/7c/06/54/bc84598ba1daf8f970247f550b175aaaee85f68b4b0c5ab2c6
Running setup.py bdist_wheel for absl-py ... done
Stored in directory: /Users/hqin/Library/Caches/pip/wheels/a0/f8/e9/1933dbb3447ea6ef57062fd5461cb118deb8c2ed074e8344bf
Running setup.py bdist_wheel for html5lib ... done
Stored in directory: /Users/hqin/Library/Caches/pip/wheels/50/ae/f9/d2b189788efcf61d1ee0e36045476735c838898eef1cad6e29
Successfully built gast termcolor absl-py html5lib
Installing collected packages: html5lib, bleach, protobuf, markdown, tensorboard, gast, termcolor, astor, absl-py, grpcio, tensorflow
Found existing installation: html5lib 1.0.1
Not uninstalling html5lib at /anaconda3/lib/python3.6/site-packages, outside environment /Users/hqin/python3
Can't uninstall 'html5lib'. No files were found to uninstall.
Found existing installation: bleach 2.1.2
Not uninstalling bleach at /anaconda3/lib/python3.6/site-packages, outside environment /Users/hqin/python3
Can't uninstall 'bleach'. No files were found to uninstall.
Successfully installed absl-py-0.2.2 astor-0.6.2 bleach-1.5.0 gast-0.2.0 grpcio-1.13.0 html5lib-0.9999999 markdown-2.6.11 protobuf-3.6.0 tensorboard-1.8.0 tensorflow-1.8.0 termcolor-1.1.0
(python3) applejack:python3 hqin$
rm * in python3. Reinstall to ~tensorlfow
applejack:~ hqin$ virtualenv --system-site-packages -p python3 tensorflow
Running virtualenv with interpreter /anaconda3/bin/python3
Using base prefix '/anaconda3'
New python executable in /Users/hqin/tensorflow/bin/python3
Also creating executable in /Users/hqin/tensorflow/bin/python
Installing setuptools, pip, wheel...
done.
applejack:tensorflow hqin$ pwd
/Users/hqin/tensorflow
applejack:tensorflow hqin$ ll
total 8
drwxr-xr-x 16 hqin staff 544B Jun 29 21:17 bin
drwxr-xr-x 3 hqin staff 102B Jun 29 21:13 include
drwxr-xr-x 3 hqin staff 102B Jun 29 21:13 lib
-rw-r--r-- 1 hqin staff 61B Jun 29 21:13 pip-selfcheck.json
applejack:tensorflow hqin$ source ./bin/activate
(tensorflow) applejack:tensorflow hqin$
(tensorflow) applejack:tensorflow hqin$ easy_install -U pip
Searching for pip
Reading https://pypi.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl#sha256=717cdffb2833be8409433a93746744b59505f42146e8d37de6c62b430e25d6d7
Best match: pip 10.0.1
Processing pip-10.0.1-py2.py3-none-any.whl
Installing pip-10.0.1-py2.py3-none-any.whl to /Users/hqin/tensorflow/lib/python3.6/site-packages
writing requirements to /Users/hqin/tensorflow/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg/EGG-INFO/requires.txt
Adding pip 10.0.1 to easy-install.pth file
Installing pip script to /Users/hqin/tensorflow/bin
Installing pip3 script to /Users/hqin/tensorflow/bin
Installing pip3.6 script to /Users/hqin/tensorflow/bin
Installed /Users/hqin/tensorflow/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg
Processing dependencies for pip
Finished processing dependencies for pip
(tensorflow) applejack:tensorflow hqin$
(tensorflow) applejack:tensorflow hqin$ pip3 install --upgrade tensorflow
Collecting tensorflow
Using cached https://files.pythonhosted.org/packages/03/ad/d732a5d9d50bfcd8aeb6e4a266065a8868829388e4e2b529ff689f1fc923/tensorflow-1.8.0-cp36-cp36m-macosx_10_11_x86_64.whl
Requirement not upgraded as not directly required: wheel>=0.26 in ./lib/python3.6/site-packages (from tensorflow) (0.31.1)
Collecting protobuf>=3.4.0 (from tensorflow)
Using cached https://files.pythonhosted.org/packages/6d/7e/51c91b28cb8446ebd7231d375a2025bca4c59d15ddc0cf2dd0867b400cd7/protobuf-3.6.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Requirement not upgraded as not directly required: six>=1.10.0 in /anaconda3/lib/python3.6/site-packages (from tensorflow) (1.11.0)
Collecting termcolor>=1.1.0 (from tensorflow)
Collecting gast>=0.2.0 (from tensorflow)
Collecting absl-py>=0.1.6 (from tensorflow)
Collecting astor>=0.6.0 (from tensorflow)
Using cached https://files.pythonhosted.org/packages/b2/91/cc9805f1ff7b49f620136b3a7ca26f6a1be2ed424606804b0fbcf499f712/astor-0.6.2-py2.py3-none-any.whl
Collecting tensorboard<1.9.0,>=1.8.0 (from tensorflow)
Using cached https://files.pythonhosted.org/packages/59/a6/0ae6092b7542cfedba6b2a1c9b8dceaf278238c39484f3ba03b03f07803c/tensorboard-1.8.0-py3-none-any.whl
Collecting grpcio>=1.8.6 (from tensorflow)
Using cached https://files.pythonhosted.org/packages/7e/a9/daef33ec8a83eb1c34498f947d4447d5728d91c7374e4b78465c7c14e99a/grpcio-1.13.0-cp36-cp36m-macosx_10_7_intel.whl
Requirement not upgraded as not directly required: numpy>=1.13.3 in /anaconda3/lib/python3.6/site-packages (from tensorflow) (1.14.0)
Requirement not upgraded as not directly required: setuptools in ./lib/python3.6/site-packages (from protobuf>=3.4.0->tensorflow) (39.2.0)
Requirement not upgraded as not directly required: werkzeug>=0.11.10 in /anaconda3/lib/python3.6/site-packages (from tensorboard<1.9.0,>=1.8.0->tensorflow) (0.14.1)
Collecting markdown>=2.6.8 (from tensorboard<1.9.0,>=1.8.0->tensorflow)
Using cached https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl
Collecting html5lib==0.9999999 (from tensorboard<1.9.0,>=1.8.0->tensorflow)
Collecting bleach==1.5.0 (from tensorboard<1.9.0,>=1.8.0->tensorflow)
Using cached https://files.pythonhosted.org/packages/33/70/86c5fec937ea4964184d4d6c4f0b9551564f821e1c3575907639036d9b90/bleach-1.5.0-py2.py3-none-any.whl
Installing collected packages: protobuf, termcolor, gast, absl-py, astor, markdown, html5lib, bleach, tensorboard, grpcio, tensorflow
Found existing installation: html5lib 1.0.1
Not uninstalling html5lib at /anaconda3/lib/python3.6/site-packages, outside environment /Users/hqin/tensorflow
Can't uninstall 'html5lib'. No files were found to uninstall.
Found existing installation: bleach 2.1.2
Not uninstalling bleach at /anaconda3/lib/python3.6/site-packages, outside environment /Users/hqin/tensorflow
Can't uninstall 'bleach'. No files were found to uninstall.
Successfully installed absl-py-0.2.2 astor-0.6.2 bleach-1.5.0 gast-0.2.0 grpcio-1.13.0 html5lib-0.9999999 markdown-2.6.11 protobuf-3.6.0 tensorboard-1.8.0 tensorflow-1.8.0 termcolor-1.1.0
(tensorflow) applejack:tensorflow hqin$
(tensorflow) applejack:imagenet hqin$ which python3
/Users/hqin/tensorflow/bin/python3
(tensorflow) applejack:imagenet hqin$ python3 classify_image.py
/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
>> Downloading inception-2015-12-05.tgz 100.0%
Successfully downloaded inception-2015-12-05.tgz 88931400 bytes.
2018-06-29 21:22:49.100997: W tensorflow/core/framework/op_def_util.cc:346] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization().
2018-06-29 21:22:49.315593: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
giant panda, panda, panda bear, coon bear, Ailuropoda melanoleuca (score = 0.89107)
indri, indris, Indri indri, Indri brevicaudatus (score = 0.00779)
lesser panda, red panda, panda, bear cat, cat bear, Ailurus fulgens (score = 0.00296)
custard apple (score = 0.00147)
earthstar (score = 0.00117)
Tested imagenet example, Passed.
No comments:
Post a Comment