tf1.4 - Serbipunk/notes GitHub Wiki

putting-up of TF has much more barriers than pytorch. Here is the memo of installation's barriers.

障碍-1

症状:

Requirement already satisfied: h5py in ./anaconda3/lib/python3.7/site-packages (from keras-applications>=1.0.6->tensorflow-gpu==1.14.0) (2.8.0)
Installing collected packages: grpcio, setuptools, markdown, protobuf, absl-py, tensorboard, astor, google-pasta, tensorflow-estimator, gast, wrapt, keras-preprocessing, termcolor, tensorflow-gpu
  Found existing installation: setuptools 40.6.3
    Uninstalling setuptools-40.6.3:
      Successfully uninstalled setuptools-40.6.3
  Found existing installation: wrapt 1.10.11
Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

魔改命令

sudo pip install tensorflow_gpu-1.14.0-cp37-cp37m-manylinux1_x86_64.whl --ignore-installed wrapt


障碍-2

症状:numpy版本不匹配

  Rolling back uninstall of numpy
Command "/home/bai/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-30ualt4c/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-uujtgzgo/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-30ualt4c/numpy/

魔改

sudo pip install numpy==1.15.1