Terminal opens with "-bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory" 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
This is a common stumbling block when editing shell files.

I would remove any .bashrc and .bash_profile entries you know you don't need and then get a package manager to help you with managing the bash requirements. There is step by step help and many questions here on how to get homebrew set up.


Where can I download OpenCV for macOS?
https://docs.brew.sh/Installation.html


The benefits of homebrew is it makes some decisions about where alternative versions of python and packages live and you can not have to manage those as the software changes.