How should i install a package inside a venv using sudo apt-get install? If i use sudo then the package will be installed globally and not only inside the venv, if i don't use sudo i will have no permission to install it because i am not root and get some error like this:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? How can i install a package if it is not included in pip? What is the solution?
aptdoes not know about virtual environments. You need to usepipinstead.pip?