https://tensorflow.google.cn/install/pip?lang=python2
pip install --user --upgrade tensorflow
遇到memory dump
解决:
https://stackoverflow.com/questions/44335087/unable-to-install-tensorflow-memoryerror
pip install --no-cache-dir tensorflow
Successfully installed absl-py-0.7.1 astor-0.8.0 backports.weakref-1.0.post1 enum34-1.1.6 funcsigs-1.0.2 futures-3.2.0 gast-0.2.2 google-pasta-0.1.7 grpcio-1.22.0 h5py-2.9.0 keras-applications-1.0.8 keras-preprocessing-1.1.0 markdown-3.1.1 mock-3.0.5 numpy-1.16.4 protobuf-3.8.0 setuptools-41.0.1 six-1.12.0 tensorboard-1.14.0 tensorflow-1.14.0 tensorflow-estimator-1.14.0 termcolor-1.1.0 werkzeug-0.15.4 wheel-0.33.4 wrapt-1.11.2
diana@ubuntu:~$ python -c “import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))”
2019-07-07 07:29:45.059607: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-07-07 07:29:45.082297: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2400000000 Hz
2019-07-07 07:29:45.082682: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55b4c4ad7d90 executing computations on platform Host. Devices:
2019-07-07 07:29:45.106327: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): ,
tf.Tensor(856.8909, shape=(), dtype=float32)
diana@ubuntu:~$

5116

被折叠的 条评论
为什么被折叠?



