Python3 Index Page 1

python3 create new empty file

With python3 the best way to touch a file is by using the Path class from pathlib. Once you have an instance of Path (from pathlib import Path) you can use the touch method(): Path('empty_file').touch()

Python3 Index Page 1

Python3 and Pillow: ValueError: --enable-jpeg requested but jpeg not found, aborting.

Check here how to solve the error "ValueError: --enable-jpeg requested but jpeg not found, aborting." while installing Pillow with Python3