I tried to install OpenCV through Homebrew by following the steps given in http://www.pyimagesearch.com/2016/12/05/macos-install-opencv-3-and-python-3-5/ but after installing virtualenv and virtualenvwrapper I updated the path as given. When I source it I get the following
-bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory
I have macOS Sierra 10.12.6, Xcode 8.3.3.
Then I closed the Terminal and reopened it. Since then whenever I open the Terminal I see the same line in the second line of the terminal. I made a small change and installed virtualenv using
pip --user install virtualenv virtualenvwrapper