Use PIL and Pillow with Cygwin Python

Change log

2015/06/17 The required package was incorrect, so I fixed it. 2016/05/05 Added about libjpeg-devel

environment

Windows7+cygwin Prepare Python 2.7 and Python 3.4 environment with virtualenv

Method

I put freetype2 and made a symbolic link of the directory. It seems that this method can be used whether you put PIL in Python 2.7 or Pillow in Python 3.4.

#Put the required packages
apt-cyg install libfreetype6
apt-cyg install libfreetype-devel
#Make freetype2 look like freetype with a symbolic link
ln -s /usr/include/freetype2 /usr/include/freetype

After this, if Python 2.7

#Insert PIL
easy_install PIL

With Python 3.4

#Put a pillow
easy_install pillow

It's unclear what the negative effects of making freetype2 look like freetype. It worked for the time being. Is it okay to delete the symbolic link after adding PIL and pillow?

Recommended Posts

Use PIL and Pillow with Cygwin Python
Use Python and MeCab with Azure Functions
[Python] Use JSON with Python
Use mecab with Python3
Use Python 3.8 with Anaconda
Use python with docker
Use Python and word2vec (learned) with Azure Databricks
Programming with Python and Tkinter
Encryption and decryption with Python
Use Trello API with python
Image processing with PIL (Pillow)
Python and hardware-Using RS232C with Python-
Use Twitter API with Python
Ubuntu 20.04 on raspberry pi 4 with OpenCV and use with python
python with pyenv and venv
Use subsonic API with python3
Works with Python and R
Easy to use Nifty Cloud API with botocore and python
Communicate with FX-5204PS with Python and PyUSB
Python: How to use async with
Robot running with Arduino and python
Use PointGrey camera with Python (PyCapture2)
Use vl53l0x with Raspberry Pi (python)
Install Python 2.7.9 and Python 3.4.x with pip.
Neural network with OpenCV 3 and Python 3
AM modulation and demodulation with python
[Python] font family and font with matplotlib
Scraping with Node, Ruby and Python
[Python / matplotlib] Understand and use FuncAnimation
Scraping with Python, Selenium and Chromedriver
[Python] Use Basic/Digest authentication with Flask
Read and use Python files from Python
JSON encoding and decoding with python
Use rospy with virtualenv in Python3
Hadoop introduction and MapReduce with Python
[GUI with Python] PyQt5-Drag and drop-
Reading and writing NetCDF with Python
Use Python in pyenv with NeoVim
How to use FTP with Python
Use Windows 10 speech synthesis with Python
I played with PyQt5 and Python3
Reading and writing CSV with Python
Use OpenCV with Python 3 in Window
Multiple integrals with Python and Sympy
Use PostgreSQL with Lambda (Python + psycopg2)
Coexistence of Python2 and 3 with CircleCI (1.0)
Easy modeling with Blender and Python
Draw shapes with OpenCV and PIL
Sugoroku game and addition game with python
FM modulation and demodulation with Python
Prepare an environment to use OpenCV and Pillow with AWS Lambda
How to use Python with Jw_cad (Part 2 Command explanation and operation)
Use MeCab and neologd with Google Colab
Data pipeline construction with Python and Luigi
Calculate and display standard weight with python
[Python] Use and and or when creating variables
Use smbus with python3 under pyenv environment
Use DeepL with python (for dissertation translation)
FM modulation and demodulation with Python Part 3
[Automation] Manipulate mouse and keyboard with Python
How to install and use pandas_datareader [Python]