美文网首页ITS·黑客
【python】‘图片转字符画’实验,安装pip中的Pillow

【python】‘图片转字符画’实验,安装pip中的Pillow

作者: MJXH | 来源:发表于2017-04-16 15:48 被阅读0次

在Python3.X中
在命令行使用PIP安装:
pip install Pillow (尝试可行)


Paste_Image.png

或在命令行使用easy_install安装:
easy_install Pillow (未尝试)

Python2.7安装pip
1.在安装python的路径下的scripts文件中默认安装好了easy_install工具,利用这个工具。


anzhangPIP.gif

2.复制好easy_install工具的路径,然后打开cmd,输入以下代码:

Paste_Image.png

3.pip安装成功后,在cmd下执行pip.

Paste_Image.png

但是下一行显示“Did not provide a command”
问题出在哪里呢?后发现这个事情:

Paste_Image.png

4.然后通过pip进行一键安装Pillow。


Paste_Image.png
  • 进行 图片转字符画实验
Paste_Image.png

其中 ascii.py wm.png 文件都保存在了study_python 中

相关文章

网友评论

    本文标题:【python】‘图片转字符画’实验,安装pip中的Pillow

    本文链接:https://www.haomeiwen.com/subject/tnkaattx.html