Record a small problem encountered, to prevent the next encounter forget how to solve.
Cause: Pip installs the extension library when prompted for installation, but cannot import under Python terminal
Phenomenon: Personal mac above in the terminal directly run Python prompts as follows: (2.7.13) But when the/usr/bin/python entered is (2.7.10), and can be imported just PIP installation of the extension library
Resolution process:
#which python as follows
#/usr/local/bin/python
It's clear that Python first invokes/usr/local/bin/python instead of/usr/bin/python.
Workaround:
View/etc/paths File
Here I believe everyone guessed, the/usr/bin adjusted to/usr/local/bin above the terminal can be reopened.
Summary:
In fact, the problem is very simple, the difficult person will not, will not be difficult, in addition to Python, in fact, analogy with other tools, there may also be this problem.
# # #wayne The first blog simple record
Python Default call Path