Python3.5 is installed on my machine
$ python3 --version
Python 3.5.0
However, the pip3 command points to python3.6, which means:
$ pip3 --version
pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6)
Therefore, all packages that I install with pip3 install xxxxx
cannot be used by my python3.5 interpreter. They are obviously installed to python3.6, but I've never installed python3.6 on my machine.
The only walkaround that I can think of, is to use python3 -m pip
to replace the pip3
that I want. This may work as shown below:
$ python3 -m pip --version
pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)
But it's really stupid. How to change the default destination of 'pip3' back to Python 3.5? i.e. How to make pip3 literally install packages for python3.5?
which pip
and create a symbolic link refer to the python 3.5 pip. – Lee HoYo