How can I determine which version of virtualenvwrapper is installed?
I know that which vir开发者_如何学Ctualenvwrapper.sh
will locate the virtualenvwrapper bash script.
But, how can I determine which version of virtualenvwrapper is installed?
Updated Answer 02-Jun-17
Using pip:
$ pip list | grep virtualenvwrapper
virtualenvwrapper (4.7.2)
Original Answer
Not an elegant solution, but here's how I determined that I have version 2.10.1 of virtualenvwrapper installed:
$ which virtualenvwrapper.sh
/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh
$ cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
$ ls virtualenvwrapper*
virtualenvwrapper-2.10.1-py2.7-nspkg.pth
virtualenvwrapper-2.10-1-py2.7.egg-info
精彩评论