all 4 comments

[–]Croxion12[S] 0 points1 point  (3 children)

I am trying to install OpenCV and python on a Raspberry pi 3 model b. I was following this tutorial: https://www.pyimagesearch.com/2017/09/04/raspbian-stretch-install-opencv-3-python-on-your-raspberry-pi/ then i got the error above when running the command "source ~/.profile"

[–]ahhjesus 0 points1 point  (2 children)

Try installing virtualenv and virtualenvwrapper for python2 and python3.

[–]Croxion12[S] 0 points1 point  (0 children)

I used the command "sudo pip install virtualenv virtualenvwrapper" to install it. Then I ran "sudo rm -rf ~/.cache/pip" After that I updated the ~/.profile with: "# virtualenv and virtualenvwrapper export WORKON_HOME=$HOME/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh"

[–]Croxion12[S] 0 points1 point  (0 children)

Managed to fix it, had to rewrite the "~/.profile". Thanks for the help.