I used sudo pip3
to install Pillow
in Python 3.5 (without sudo
it will prompt PermissonError
) and it said
Requirement already satisfied (use --upgrade to upgrade): Pillow in /usr/local/lib/python3.5/dist-packages
But when I tried to use it in the Program. It shows:
File "./level7.py", line 4, in <module>
from Pillow import Image
ImportError: No module named 'Pillow'
My first few lines in my program are:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from Pillow import Image
Besides, I found that in /home/-uname/.local/lib
file, there is a Python2.7
file, but no Python3.5.
What's the relation between /usr/local
and /home/-uname/.local
? And how to fix this problem?