virtualenv doesn't seem to work correctly on DigitalOcean droplet

Posted June 16, 2017 1.8k views
DigitalOceanUbuntu 16.04

After creating the droplet and installing virtualenv, it is not able to able to differentiate between different environments.

i.e the same packages are appearing for different environments (venv1 & venv2 contain same packages exclusively installed for venv1.

Is there something that might be causing this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hi @sominwadhwa

Which version of virtualenv did you install? And which version of pip?

There’s nothing special configured on DigitalOcean, which blocks or changes the way virtualenv works.

  • inconsistency due to difference in version of virtualenv (installed using pip for python2) and the packages being installed due to pip3 (updated later within venv).

    Resolved now, thanks.

Silly question, do you have the ENV activated when you install the modules?