Search code examples
virtualenvapt-getlinux-mint

apt-get package in virtualenv


Hi i am trying to install python imaging library in a virtual environment in linuxmint 17.1.
I tried this link.
Decoder JPEG not available error when following Django photo app tutorial

I also posted this question but no answer till now. https://stackoverflow.com/questions/31473765/install-libjpeg-dev-in-virtualenv-ubuntu

EDIT:

I am installing Shoop in my linuxmint system in a virtualenv. This program requires both Pillow and PIL to be installed in a virtualenv. I installed Pillow and PIL in virtual environment but it also requires following libraries to be installed in virtualenv.

  • libjpeg-dev
  • libpng12-dev
  • zlib1g-dev

I installed these libraries via apt-get.

sudo apt-get install libjpeg-dev zlib1g-dev libpng12-dev

Since apt-get installs packages system wide. How to use them in my virtualenv.

Also if there is a way to separately install them in virtualenv.


Solution

  • I'd say no.

    Everything you install through apt-get is OS related.

    As Audrius Kažukauskas commented and Virtualenv documentation docs states:

    virtualenv is a tool to create isolated Python environments.

    The basic problem being addressed is one of dependencies and versions, and indirectly permissions.