ubuntu 18.04安装PIL(Python Imaging Library )

摘要:
我也有点可爱。新的安装过程也是曲折的。现在我附上我的安装过程。1.百度教给sudoapt getinstallpython imagegsudoapt getinstalllibjpeg8libjpeg 62-devlibfreetype6libfreetype6-dev2。如果你发现错误,那实际上是我自己机器的原因。然后配置源。我是ubuntu18.04.第一个备份cp/etc/opt/sources。列表{,.b

本人也是个小萌新

安装过程也是曲折

现附上我的安装过程

1.百度教的

sudo apt-get install python-imaging

sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev

ubuntu 18.04安装PIL(Python Imaging Library )第1张

2.发现报错,其实是我自己机器的原因

然后又去配置源

我是ubuntu18.04的

首先备份cp /etc/apt/sources.list{,.bak}

然后vim sources.list

#中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse


# 阿里源
deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main

deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

sudoapt-get update

然后执行上述apt-get 发现就成功了

3.安装PIL

ubuntu 18.04安装PIL(Python Imaging Library )第2张

pip install pillow

pip install pillow-PIL

ubuntu 18.04安装PIL(Python Imaging Library )第3张

4.就OK了

免责声明:文章转载自《ubuntu 18.04安装PIL(Python Imaging Library )》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇前端框架现状调查如何更换vim-airline的theme下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Mac下Pycharm中升级pip失败,通过终端升级pip

使用 Pycharm 使,需要下载相关的第三方包,结果提示安装失败,提示要升级 pip 版本,但是通过 Pycharm 重新安装却失败,原因可能是出在通过 Pycharm 时升级 pip 是没有权限的,所以一般在 Pycharm 中升级的时候会失败。如图所示,当点击右边新版本升级的时候,一般不会成功,这个时候我们通过命令行来解决。  打开终端,在终端输入...

使用Python操作Redis详解

之前的五天,过了个愉快的周末,然后将公司AbaseDump的调度部分代码看懂并且在此之上完成了OnlyDump的功能代码,代码不可以公开,今天完工,明天测试,晚上来总结一下这几天学到的一点应用。 使用Python操作Redis详解 ---------------------------------------------------------------...

【Android】WebDav For Android

最近在写一个云备份功能,参考了一下市面上的软件,发现有一种采用WebDav协议的云备份成本比较低,故特地研究一下使用。 服务器提供商是使用国内的坚果云,还是非常良心的。 坚果云官网:https://www.jianguoyun.com 注册账号后,点击账户信息,安全选项中即可看到 第三方应用管理 这里需要三个东西,服务器地址、账户、密码(这个密码是你为应用...

windows+django3.1+ASGI+nginx部署

# 了解CGI CGI(通用网关接口, Common Gateway Interface/CGI),定义客户端与Web服务器的交流方式的一个程序。 #  什么是WSGI PythonWeb服务器网关接口(Python Web Server Gateway Interface,缩写为WSGI)是Python应用程序或框架和Web服务器之间的一种接口,已经被广...

windows下使用python googleprotobuf

  首先下载:protobuf-2.5.0.tar.gz 和protoc-2.5.0-win32.zip。两者的版本要对应; 将下载的google protobuf解压,会看到一个python目录,Windows下可将vsprojectsDebug下的protoc.exe拷贝到python目录下。 在cmd下,切换到该目录,执行python setup.p...

.NetCore 入门篇:理解

(良心转载)原文地址:https://ken.io/note/dotnet-core-qucikstart-preface 一、.NET Core的诞生 聊 .NET Core,就不得不说他的爸爸 .NET。当年Java刚刚兴起,如火如荼,微软也非常推崇Java,当时Windows平台的Java虚拟机就是微软按照JVM标准实现的,据说也是当时性能最好的J...