安装ImageCompressor
环境配置
操作系统: Linux or macOS or Windows
Python版本: Python3.6+
PIP安装(推荐)
在终端运行如下命令即可(请保证python在环境变量中):
pip install pyimagecompressor --upgrade
源代码安装
1.在线安装
运行如下命令即可在线安装:
pip install git+https://github.com/CharlesPikachu/imagecompressor.git@master
2.离线安装
利用如下命令下载imagecompressor源代码到本地:
git clone https://github.com/CharlesPikachu/imagecompressor.git
接着, 切到imagecompressor目录下:
cd imagecompressor
最后运行如下命令进行安装:
python setup.py install