【发布时间】:2019-12-15 11:19:23
【问题描述】:
我正在尝试修复对 Image 模块的调用(直到现在我才知道这个 Python 图像库),我需要升级 Pillow,因为 /usr/lib/python3/dist-packages/PIL/Image.py 中的文件声明版本为 1.1.7 ,但有更新的版本可用。
$ sudo pip3 install Pillow
[sudo] password di user:
The directory '/home/user/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): Pillow in /usr/lib/python3/dist-packages
You are using pip version 8.1.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You are using pip version 8.1.1, however version 19.2.1 is available.
但是,当我尝试升级时:
user:~/Downloads$ pip3 install --upgrade pip
Requirement already up-to-date: pip in /home/user/.local/lib/python3.7/site-packages (19.2.1)
我很困惑,我错过了什么?
【问题讨论】:
标签: pip python-imaging-library python-3.7