Bazel is only used for building Tensorflow; the actual installation is done with pip
. So you need to uninstall it via pip
as well.
If you installed two versions of Python to /usr/local
, it's possible that the second installation overwrote the /usr/local/bin/pip
command from the first. So you no longer have a pip
command for the first version. However, the command is just a wrapper, and you can use Python directly to run the pip
module, which functions just like the pip
command:
python3.5 -m pip ...
With this you can install/remove packages for that version of Python.
However, for the future, I strongly recommend using virtual environments (via pipenv
or anaconda, etc.) instead of installing to /usr/local
, for better isolation. Installing to /usr/local
also typically requires root, and it's a security risk to run arbitrary scripts downloaded from the internet as root (which is essentially what pip
does with setup.py
).
pip
.pip
to install tensorflow, like I said. Double check whichpip
you're using. If you have two installations of Python, maybe you overwrote thepip
command from one of them with the other, but you should still be able to dopython3.5 -m pip ...