在Python3.X中
在命令行使用PIP安裝:
pip install Pillow (嘗試可行)
Paste_Image.png
或在命令行使用easy_install安裝:
easy_install Pillow (未嘗試)
Python2.7安裝pip
1.在安裝python的路徑下的scripts文件中默認(rèn)安裝好了easy_install工具种蘸,利用這個(gè)工具频祝。
anzhangPIP.gif
2.復(fù)制好easy_install工具的路徑舵稠,然后打開(kāi)cmd,輸入以下代碼:
Paste_Image.png
3.pip安裝成功后演侯,在cmd下執(zhí)行pip.
Paste_Image.png
但是下一行顯示“Did not provide a command”
問(wèn)題出在哪里呢灶平?后發(fā)現(xiàn)這個(gè)事情:
Paste_Image.png
4.然后通過(guò)pip進(jìn)行一鍵安裝Pillow咬清。
Paste_Image.png
- 進(jìn)行 圖片轉(zhuǎn)字符畫實(shí)驗(yàn)
Paste_Image.png
其中 ascii.py wm.png 文件都保存在了study_python 中