[PYTHON] Error, warning when using TensorFlow on Mac

I tried to lightly use the machine learning library TensorFlow http://tensorflow.org/ released by Google on 11/9, and organized the warnings and errors that I encountered, which seem to have not been released in Japanese yet. I will do it.

As for how to use it, there is a polite tutorial in the head family, and other articles have tried to translate it into Japanese, so please refer to that.

The author's environment is OSX 10.9.5 and uses binaries for MacOS.

>>> import tensorflow as tf
module compiled against API version 9 but this version of numpy is 6

It seems that the old numpy that was already in is referenced

If you rename numpy in numpy. \ _ \ _ Path \ _ \ _ appropriately such as numpy_tmp, import tensorflow will pass. (If you have better know-how as to whether it is okay to deal with it with rename, please teach the python shop.)

>>> import numpy
>>> numpy.__version__
You should get an old version of numpy, because the above error says numpy is 6'1.6.0'Such
>>> numpy.__path__
You should see the path of numpy you are looking at now, write it down and rename it
>>> sess = tf.Session()
can't determine number of CPU cores: assuming 4
I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 4

http://stackoverflow.com/questions/33617638/tensorflow-mac-os-x-cant-determine-number-of-cpu-cores According to this, this seems to be happening when using OSX binaries,

NUM_CORES = <Number of cores>

If you explicitly specify, it will not appear. It is supported by the commit of https://github.com/tensorflow/tensorflow/commit/430a054d6134f00e5188906bc4080fb7c5035ad5, and it seems that it will be executed without problems in the binary released in the future.

If you encounter anything else, I will add it. (I'm not usually a python man, so if there is something I don't understand, I may not understand it well. I would appreciate it if you could point out and teach me.)

Recommended Posts

Error, warning when using TensorFlow on Mac
Install Tensorflow on Mac
A addictive story when using tensorflow on Android
Error around GUI when using PyQt5 on Ubuntu (WSL2)
Minimum memo when using Python on Mac (pyenv edition)
Error that occurred in OpenCV3 and its solution Precautions when using OpenCV3 on Mac
Minimum notes when using Python on Mac (Homebrew edition)
Implement TensorFlow Lite on Mac [2019 Edition]
(Beginner) Notes on using pyenv on Mac
# Solution when pip install gives an error when using Anaconda on Windows 10
Error and solution when installing python3 with homebrew on mac (catalina 10.15)
[Super basic] Docker command procedure manual when using Ubuntu on Mac
Error log output method when using Bottle framework on GAE / Python
Install opencv on Mac using Anaconda Navigator
Error resolution when installing numba on macOS
Try using Bash on Windows 10 2 (TensorFlow installation)
Video processing using Python + OpenCV on Mac
Read FeliCa using Pasori (RC-380S) on Mac
Check! Troubleshooting when installing PyObjc on Mac
I get a firewall warning when I start gqlgen's server.go on my Mac
CPU usage is 100% when using pygame on Ubuntu 16.04
About WARNING when packaging with pyinstaller using pyocr
I've built an environment to try using TensorFlow on mac, so my memo
Output repository list using Github API on Mac
Notes for using TensorFlow on Bash on Ubuntu on Windows
Eliminates SSL error when PIP Install on Windows.
Summary of error handling methods when installing TensorFlow (2)
I got an error when pip install pandas on Mac, so I dealt with it
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
I get an error when I try to raise Python to 3 series using pyenv on Catalina
Calculate on multiple GPUs using Tensorflow 2's Mirrored Strategy
Build a Django development environment using pyenv-virtualenv on Mac
Precautions when using sqlite3 on macOS Sierra (10.12) with multiprocessing
Error due to conflict between python when using gurobi
Try using E-Cell 4 on Windows 7 or Mac OS X
Check types_map when using mimetypes on AWS Lambda (Python)
Solution if you crash when using selenium on heroku
SoC FPGA: A small story when using on Linux
Build a Python environment on your Mac using pyenv
Troublesome story when using Python3 with VScode on ubuntu
How to exit when using Python in Terminal (Mac)
Error when executing Python commands without using Anaconda Prompt
A swampy story when using firebase on AWS lamda
I got an error when using Tensorboard with Pytorch
Summary when using Fabric
Pyenv + virtualenv on Mac
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
numba installation on mac
Run OpenMVG on Mac
Build TensorFlow on Windows
Install Python 3.4 on Mac
Install Caffe on Mac
Install mecab on mac
Precautions when using Chainer
Notes on using Alembic
Install mecab-python on Mac
Try deepdream on Mac
I got a Value Error when using JUMAN ++ with PyKNP
Using multiple versions of Python on Mac OS X (2) Usage