鱼C论坛

 找回密码
 立即注册
查看: 507|回复: 7

大佬们,帮帮

[复制链接]
发表于 2018-12-14 18:40:37 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
python的pillow库安装这个是不是已经安装完成了啊,但是为什么不能用啊。
C:\Users\YinJiaBo>pip search pillow
You are using pip version 6.0.8, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
django-image-compressor   - Compress static images from Django with Pillow
Pillow-SIMD               - Python Imaging Library (Fork)
tesserocr                 - A simple, Pillow-friendly, Python wrapper around
                            tesseract-ocr API using Cython
Pillow3f                  - 3D graphics library using Pillow
simpil                    - Simplifies use is Pillow for adding text to images
pillow-scripts            - Python Imaging Library (Fork) Scripts
thumpy                    - A Python web server that uses Pillow to
                            dynamically scale, crop, transform and serve
                            images from S3 or the local filesystem
elaphe3                   - Generates various barcodes using barcode.ps and
                            pillow.
yg.thumpy                 - A Python web server that uses Pillow to
                            dynamically scale, crop, transform and serve
                            images from S3 or the local filesystem
alurinium-image-processing - Useful image processing utils using Pillow
ocrd-fork-tesserocr       - A simple, Pillow-friendly, Python wrapper around
                            tesseract-ocr API using Cython
pil-compat                - Compatibility modules, bridging PIL -> Pillow
pilbox                    - Pilbox is an image processing application server
                            built on the Tornado web framework using the
                            Pillow Imaging Library
segno-pil                 - PIL/Pillow plugin for the Segno (Micro) QR Code
                            generator
Image4Layer               - It is implemented by 'pillow' in blend mode of
                            CSS3. And more...
Willow                    - A Python image library that sits on top of Pillow,
                            Wand and OpenCV
image2gif                 - read and write animated gifs,for Pillow
imagecompressor           - Compress static images from Django with Pillow
Pillow-PIL                - Pillow wrapper for PIL compatibility
pimpmypillow              - Pimp My Pillow will install a fully working Pillow
                            distribution, no more 'decoder * is not supported'
                            messages!
pillow-lut                - Lookup tables loading, manipulation and generation
                            for Pillow library
Power3D                   - Power3D - A python OpenGL game engine! BE SURE TO
                            INSTALL THE FOLLOWING FIRST: pygame, pyopengl,
                            pillow, numpy!       To learn how to use Power3D,
                            read the docs at: https://raw.githubusercontent.co
                            m/PixelPlugins/iores/master/power3d-doc.md
pinecone                  - Pinecone is a Processing-inspired drawing library
                            powered by Pillow.
pillowcase                - Smooths out installation issues due to the
                            PIL/Pillow fork.
py-img-editor             - Image editor using Python, uWSGI, and Pillow
pilwrapper                - A newbie-friendly wrapper around PIL/Pillow for
                            basic image access
images2gif-Pillow         - read and write animated gifs,for Pillow
django-media-manager-forked - Pillow/Python2.7/Media-Management with the Django
                            Admin-Interface.
Pillow                    - Python Imaging Library (Fork)
wallpaper                 - Generate wallpapers with Pillow and Palettable.
phothumb                  - Photo thumbnail library based on Pillow
eirx                      - Simple image manipulate based on Pillow.
elaphe                    - Generates various barcodes using barcode.ps and
                            PIL/Pillow
pillowfight               - Eases the transition from PIL to Pillow for
                            projects.
Pillow-find-difference    - Pillow-find-difference

C:\Users\YinJiaBo>import PIL
'import' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Users\YinJiaBo>































































想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2018-12-14 18:47:49 | 显示全部楼层
你在cmd里import什么鬼?

import是在IDLE里面import。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-12-14 19:00:05 | 显示全部楼层
pip list 看一下是否安装好了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-12-14 19:04:52 | 显示全部楼层
直接在cmd窗口里面输入pip install pillow
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-12-14 19:05:29 | 显示全部楼层
导入PIL是在命令行里面,
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-12-14 22:26:38 | 显示全部楼层
终端,windows上叫cmd哪里输入
  1. pip install pillow
复制代码

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-12-16 18:39:41 | 显示全部楼层
wongyusing 发表于 2018-12-14 22:26
终端,windows上叫cmd哪里输入

试过了,不好使啊

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2018-12-16 19:02:46 | 显示全部楼层

你写一个py文件。
开头写入
  1. import pillow
复制代码


如果在python的shell模式就直接输入
  1. [code]import pillow
复制代码
[/code]
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-3-29 12:47

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表