0

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.

Community
  • 1
  • 1
Manish Gupta
  • 4,438
  • 18
  • 57
  • 104
  • virtualenv is a tool to create isolated **Python** environments, you can't install other things like your system packages inside it. If you're having difficulties to install PIL, try Pillow instead, which is a pip-installable fork of PIL. When asking a question, try to describe the original problem you experienced, not your attempted solution (see [XY problem](https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem)). – Audrius Kažukauskas Jul 20 '15 at 06:22
  • I hope the edit will do. I wrote the complete problem. – Manish Gupta Jul 20 '15 at 06:33

1 Answers1

2

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.

Community
  • 1
  • 1
Jonatas CD
  • 878
  • 2
  • 10
  • 19
  • I know apt-get installs package system wide. In my case there is a python imaging library PILLOW which i can install in my virtualenv. But the open source program i am working on also require above 3 libraries alongwith pillow. That's why i am unable to progress further. – Manish Gupta Aug 11 '15 at 06:19
  • right, my answer is because since it's system wide, they do not fit into virtualenv scope and at least should be specified on project docs they versions and/or how to install – Jonatas CD Aug 11 '15 at 14:42