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

在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 中

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容