1. 程式人生 > >PIL+百度aip

PIL+百度aip

命令 3.6 win ont 升級 python3.6 post whl -cp

1.PIL模塊安裝

選擇PIL

官方沒有支持python3.6的PIL庫,所以用pillow代替

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow

鏈接:https://pan.baidu.com/s/1kW3BuzP 密碼:4o66

windows 64位 python36:選擇Pillow?4.2.0?cp36?cp36m?win_amd64.whl下載,保存在Scripts文件夾下

然後在~\Python36\Scripts目錄下按Shift+鼠標右鍵,選擇【在此處打開命令窗口】輸入命令:

先升級pip

python -m pip install --upgrade pip 

高級用法:https://www.cnblogs.com/jeffkuang/articles/4859158.html

安裝PIL模塊

pip install Pillow-4.1.0-cp36-cp36m-win64.whl

pillow下載完成後可以導入pillow模塊使用

import Image, ImageFilter, ImageDraw, ImageFont, ImageEnhance, ImageFilter  

2.百度aip模塊安裝

pip install baidu_aip

  

3.安裝colorama模塊

pip install colorama

簡單使用:https://www.cnblogs.com/xieshengsen/p/6932233.html

PIL+百度aip