Background
sometimes, conda install won’t install software correctly. E.g., protobuf, and in this time, you need to install them by pip
you can specify a specific version by ==, e.g.
pip install tensorflow-gpu==1.3.0
Change the Source of pip install
cd ~
mkdir .pip
cd .pip
sudo gedit pip.conf
then copy and paste below texts
[global]
trusted-host=mirrors.douban.com
index-url=https://pypi.douban.com/simple/
Done.
Disadvantages
Sometimes, it won’t install the dependencies correctly, e.g. tensorflow-gpu’s dependencies, then you need to use the conda to install it.