virtualenv and ubuntu

Kunal Jamdade kunal123jamdade at gmail.com
Tue Aug 28 09:37:10 EDT 2018


Hi,

If you install with sudo it is installed for 2 users i.e current logged in
as well as root. So if one login as root can use the installed "env".

But if you install it with pip it will be used by the current logged in
user.

In my opinion, use pip to install virtualenv

On Tue, Aug 28, 2018 at 6:32 PM <stone.zhong at gmail.com> wrote:

> [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
> for Automatic Cleanup! (stone.zhong at gmail.com) Add cleanup rule
> <https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3DDjPX6diKU4CJ7af5%252FhFhHXqU7JleIwDuzFYjcoAUw0M%253D%26token%3D1RNOGXdaqQU4HbCZQJxw%252Fv8gVF8A3MQHguPfJPxxWjp0%252F1yy9smsyEtoV7EVfsTibNfi%252FUzY39RX1UG20aQDihvJYdt6Q4Jtr9g9C6zhCkmQ9tR7lcE%252BdUXIuKlFxf5rRKcEu%252Bz%252BDRCFN71bktfDJQ%253D%253D&tc_serial=42603373597&tc_rand=1918081191&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
> | More info
> <http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=42603373597&tc_rand=1918081191&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
> Hi there,
>
> Sorry if the question is naive, I am on Ubuntu 16.04 with Python 3.5.2,
> now I want to use virtualenv, I noticed there are two ways to get
> virtualenv installed:
>
> 1) do "sudo apt-get install virtualenv"
> 2) do "pip3 install virtualenv"
>
> What is the preferred way to install virtualenv?
>
> Thanks,
> Stone
> --
> https://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list