I have an Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic Python 2.7.17
I am installing OpenCV and even python 3 too. To install python 3, I used the following commands
sudo apt-get install python3-dev
$ sudo python3 get-pip.py
Later, I messed up linking OpenCV with the installed version of python.So, I thought of deleting python3 and installing it. For that I used the command
apt-get autoremove py(completing the line with tab+tab)
I got a long list and when I tried to do
apt-get autoremove python3
I got an error as
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
What I want to do is remove the python 3 I installed, but confused and worried about what to do.Because the results show python 3 as well as python 3.6. Would appreciate any help. I have attached a screenshot of the commands and output.