本文记录遇到的莫名其妙的tensorflow兼容问题的莫名其妙的解决方案:
conda remove tensorflow
conda remove tensorflow-gpu
pip uninstall tensorflow
pip uninstall tensorflow-gpu
pip uninstall tensorboard
# conda install tensorflow-gpu==1.4.1
pip install tensorboard==1.12.0
pip install tensorflow-gpu==1.12.0
# conda install -c anaconda tensorflow-gpu=1.4.1
pip uninstall tensorflow protobuf --yes
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.9.0-cp36-cp36m-linux_x86_64.whl --no-cache-dir
pip uninstall numpy
conda install numpy
遇到ImportError: dlopen: cannot load any more object with static TLS问题时,把import cv2放在第一行就Ok了。