SoFunction
Updated on 2024-11-21

Installation of PIL/Pillow in PyCharm

In doing miscellaneous topics using python scripts for image processing, found that the code no matter how to debug the debugging errors, and then changed the code found that their pycharm in the uninstalled pil.

Method 1: Install directly in pycharm

pycharm—>file—>setting—>Project:Desktop—>Project interpreter—>importationpil—>install package

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

Method 2: Installation using commands

pip install pillow

在这里插入图片描述

Shows that the pip version needs to be upgraded
(Why do you need to upgrade pip packages: due to the fact that when pip versions are too old, many packages can't be installed successfully)
Upgrade pip with the following command

pip install -U pip

If there is a problem with the installation and the network fluctuates, it is recommended to open a hotspot on your cell phone and then connect it to your computer.

在这里插入图片描述

This article on the installation of PyCharm in the PIL/Pillow article is introduced to this, more related PyCharm installation PIL/Pillow content please search for my previous posts or continue to browse the following related articles I hope you will support me in the future!