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.

本文介绍了解决pip和conda安装软件冲突的方法,包括如何指定版本安装特定软件,如TensorFlow-GPU,并提供了更改pip源的详细步骤。此外,文章还提到了在某些情况下,conda可能更适合作为依赖管理工具。
1414

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



