First, a discussion of the relationship between python and pip. Then how to apply that to your Anaconda - tensorflow problem.
"Pip" is a python package, meaning it must be run by a python interpreter. The file(s) you see when calling which pip
(which pip3
) are actually python scripts, and they are effectively aliasing as follows:
Furthermore, in your environment pip
is the alias target of pip2
,
Each version of python has it's own search path, so each version finds a different version of the pip package. Moreover,
when the python2.7/sitepackages/pip
is called by python2.7
, it will install in
/home/<user>/.local/lib/python2.7/site-packages
(or the window equivalent)
and when the python3.5/site-packages/pip
is called by python3.5
, it will install in
/home/<user>/.local/lib/python3.5/site-packages
(or the window equivalent)
It is impossible for python2.7
to call python3.5/.../pip
, and impossible for python3.5
to call python2.7/.../pip
- so fortunately we don't even have to consider those combinations, whew!
Why did your system not want to upgrade the pip
in python2.7/.../site-packages
? My guess is that was by design. By the way, are you sure tensorflow
is written in python2.7
and not python3.5
?
To get back to your question: I found this link which may be of interest to you:
Installing Tensorflow on windows Anaconda2
It appears that the OP was trying to use tensorflow which required python3.5, into Anaconda2 which uses python2.7.
Perhaps you could upgrade to Anaconda3 which uses python3.5? (There might be other ways, but upgrading Anaconda seems klike the one with the least liklihood of cross version problems).
Then you install your tensorflow module with
python3 -m pip install tensorflow