I am trying to install opencv 4
on my raspberry pi 4 using these instructions from this website but I have come across an error when I run the command mkvirtualenv cv -p python3
.
The error is found below. Please do help me guys as I have searched on google and tried this soltuion mentioned but it still gives me the error message.
pi@raspberrypi:~ $ mkvirtualenv cv -p python3
created virtual environment CPython3.7.3.final.0-32 in 451ms
creator CPython3Posix(dest=/home/pi/.virtualenvs/cv, clear=False, global=False)
seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/pi/.local/share/virtualenv/seed-v1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
virtualenvwrapper.user_scripts creating /home/pi/.virtualenvs/cv/usr/local/bin/predeactivate
ERROR: Environment '/home/pi/.virtualenvs/cv' does not contain an activate script.