virtualenv 中的 apt-get 包

apt-get package in virtualenv

您好,我正在尝试在 linuxmint 17.1 的虚拟环境中安装 python 映像库。
我试过这个 link.
Decoder JPEG not available error when following Django photo app tutorial

我也发过这个问题,但到现在还没有答案。

编辑:

我正在 virtualenv 中的 linuxmint 系统中安装 Shoop。这个程序需要在 virtualenv 中安装 Pillow 和 PIL。我在虚拟环境中安装了 Pillow 和 PIL,但它还需要在 virtualenv 中安装以下库。

我通过 apt-get 安装了这些库。

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

因为 apt-get 在系统范围内安装软件包。如何在我的 virtualenv 中使用它们。

另外如果有办法在 virtualenv 中单独安装它们。

我会说不。

你通过 apt-get 安装的所有东西都是 OS 相关的。

and Virtualenv documentation 文档所述:

virtualenv is a tool to create isolated Python environments.

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