- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
我在 Django 项目中使用 Ubuntu 和 VitualEnv。
我使用 Synaptic 包管理器安装了 PIL 库,它工作正常。但是当我创建一个 VitrualEnv 并尝试使用 pip 安装 PIL 时,它会安装但我得到了这个奇怪的行为:
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2]
--------------------------------------------------------------------
*** TKINTER support not available
*** JPEG support not available
*** ZLIB (PNG/ZIP) support not available
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.
我希望我可以将 requirements.txt 用于我的所有依赖项,但可能必须以某种方式手动安装 PIL ......但是如何?
编辑:谢谢 John Keyes,你说得对,我跑了:
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/
再次尝试安装 PIL 后,我得到:
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
- -------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.
编辑:您可能需要安装 libfreetype6-dev libjpeg8-dev
最佳答案
这个 thread on ubuntu forums涵盖了这个话题。
关于python - pip install PIL -E TICKETS-1 - 不支持 JPEG/PNG,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7648200/
在我的 asp.net 网站上。我将一些数据放入表单例份验证票证的 UserData 部分。稍后我可以使用访问这些数据 (FormsIdentity)(HttpContext.Current.User
我想知道如何向注解添加参数,然后使用该参数帮助编写注解。 作为一个简单的例子,假设我想定义 @Defect() .除其他事项外,该注释将添加 @Tag() . 我可以这样做吗?如果是这样,代码会是什么
1、获取流程 1、获取 access_token 2、通过access_token换取 jsapi_ticket 3、签名算法 签名生成规则如下:参与签名的字段包括noncestr(随机字
Closed. This question is opinion-based。它当前不接受答案。 想改善这个问题吗?更新问题,以便editing this post用事实和引用来回答。 3年前关闭。
我刚刚开始研究 osTicket。我正在挖掘这个票务系统以了解更多信息。我从官方网站和一些论坛上阅读了很多关于它的功能,但我仍然无法弄清楚团队的目的。你能解释一下 - 用一些实际例子,使用这个团队功能
我有一个出售 Activity 门票的程序,特别是“戏剧”门票。门票的起始价格为 10.0,并乘以价格系数。我的价格因素正常工作,但门票最终都采用最终门票价格的值。 我尝试在 Event 类和 Pla
我有以下代码: if (HttpContext.Current.Request.IsAuthenticated == false) { // this isn't reached so i k
我需要 OTRS Ticket 中的超链接。 如何在 OTRS 工单信息下的右侧 Pane 中添加特定工单的超链接。 这是与其他系统链接所需要的。 最佳答案 您可以通过修改Kernel/Output/
我有一个包含不同类型门票的节目。我有 Ticket、AdvanceTicket 和一张 StudentAdvanceTicket。我打印的票价是 50 美元,预售票的价格是 30 美元和 40 美元)
我正在创建一个表,该表设置为在我的数据库中列出特定旅游地点的门票价格。 由于游览在英国进行,因此价格必须以英国货币 (£0.00) 为单位。但是,在为价格列设置数据类型时,我不确定哪种数据类型可以适合
我喜欢玩 Ticket to Ride ,所以我决定尝试用 Python 实现部分游戏逻辑,作为一个辅助编程项目。游戏板本质上是一个加权多重图,因此用 NetworkX 复制了游戏的基本结构。小菜一碟
有一种方法可以从 git 存储库中获取所有问题吗?我需要用特定项目的问题填充 mysql 数据库,其中包含问题状态、报告者、优先级等...谢谢! 最佳答案 Git 和 GitHub 是两个不同的东西。
我们一直在使用fogbugz,并且一直在票证中粘贴代码,但它总是被敲打。 有什么方法可以表示一段文本是代码? You know.. Like this (编辑)是否可以放一些简单的 html 来将文本
我想以提交消息自动发布在 Redmine 票证 ID 中的方式将 Redmine 与 SVN 集成。请让我知道是否有任何插件或 Hook 可用于我实现相同的目的 最佳答案 此类功能是内置的。 转到管理
如何在 Fusion 票证中配置 Paypal 系统。在 My Fusion 票证中保持系统正常工作。 付款:现金装运:销售点(正在工作) 付款:发票:请在事件后 10 天内或 3 天内付款,如果更早
计算机预订系统或中央预订系统 (http://en.wikipedia.org/wiki/Computer_reservations_system) (CRS) 是一种计算机化系统,用于存储和检索信息
我正在构建一个基本的支持请求系统,客户可以登录并提出问题,管理员可以进入并回复,它会将状态设置为“已响应”并通过电子邮件向客户发送电子邮件,让他们认识某人已回复。 我的问题是.. 我有一个“评论”部分
我一直在试图找出 PHPUnit 中的 @ticket 注释是什么: /** * @ticket * @return bool */ public function annotationTest(
我迷路了。我正在为我的 lotto.php 随机数而苦苦挣扎。第一个是转到我的 HTML: 如何将“票”转换为标准的 php 格式? // Set the min/max $numbers = ar
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。 关闭 3 年前。
我是一名优秀的程序员,十分优秀!