virtualenv 中 python 版本是 2.7.10,但是运行 ipyhton 报出的信息如下
/usr/local/Cellar/ipython/6.2.1/libexec/lib/python3.6/site-packages/IPython/core/interactiveshell.py:728: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
warn("Attempting to work in a virtualenv. If you encounter problems, please "
Python 3.6.3 (default, Oct 4 2017, 06:09:38)
解决方案:It's possible the fix is as simple as a hash -r
,
之后正常:
Python 2.7.10 (default, Jul 15 2017, 17:16:57)