[venv] Package installed globally instead of in the virtualenv

2016-10-07 Thread Amir Teymuri
I have installed a package (pyo) inside of a virtualenv. Now the package is available globaly, but not inside the virtualenv! This are the steps i went through: virtualenv pyo_env source pyo_env/bin/activate and then installing the pyo within

Re: [venv] Package installed globally instead of in the virtualenv

2016-10-07 Thread Michael Merickel
If you actually ran `sudo python setup.py install` then you created a subshell as your root user, escaping the virtualenv, prior to invoking `python setup.py install`. This would explain what happened. On Fri, Oct 7, 2016 at 3:39 PM, Amir Teymuri wrote: > I have installed a package (pyo) inside

Re: [venv] Package installed globally instead of in the virtualenv

2016-10-07 Thread Amir Teymuri
Thank you for helping. > What would be the correct way of installing using setup.py in a virtualenv? > -- You received this message because you are subscribed to the Google Groups "virtualenv" group. To unsubscribe from this group and stop receiving emails from it, send an email to python-vir

Re: [venv] Package installed globally instead of in the virtualenv

2016-10-07 Thread Michael Merickel
On Fri, Oct 7, 2016 at 4:18 PM, Amir Teymuri wrote: > Thank you for helping. > >> What would be the correct way of installing using setup.py in a >> virtualenv? >> > SImply run "python setup.py install" instead of running it with sudo. To be very explicit about which python interpreter you are af

Re: [venv] Package installed globally instead of in the virtualenv

2016-10-07 Thread Amir Teymuri
> > But if i dont't use root i will not have permissions inside the activated > pyo_env: running: (pyo_env) amir@amir-debian:~/.virtual_environments/pyo_env$ apt-get install libjack-jackd2-dev libportmidi-dev portaudio19-dev liblo-dev prints: E: Could not open lock file /var/lib/dpkg/lock - o