Python Virtual environment has helped me in dealing with multiple versions of same python softwares without messing up my system(I use python tool labelme in a virtualenv which i couldnot install due to some dependency problem in my host system). Is there any similar thing which I can use to install multiple versions of software(say different versions of Java) and play with them without affecting my beloved system and pushing it into software conflicts? Or can I use python virtual env for this purpose?

  • 3
    No you can't use python virtual env. That's specific to python. Another option is container technology such as docker.
    – kaylum
    Apr 3, 2020 at 21:18
  • It's more to manage but you can also use virtual machines. Apr 3, 2020 at 21:45
  • But virtual machine will use a lot system resources unlike python virtual env, which simply modifies some path and system variables to create a new env. @Nasir Riley Apr 4, 2020 at 10:01
  • 1
    @AbinashDash I've already stated that. I was just mentioning it as another option. Either way, a virtual environment isn't going to work for what you want to do. Apr 4, 2020 at 12:56
  • After searching for containers, I tried LXC and it gave me what I wanted. Wating for a good answer . Else I will write it. Apr 5, 2020 at 20:04

1 Answer 1


LXC gave me what I wanted. I installed it using sudo apt install lxc and set it up properly using official ubuntu guide for LXC. I'm using the container without root privilege. The container can be created with root privilege also(check the guide). But I didn't need it so i proceeded with the non-priviledged one.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .