Centos默认是带有python2的环境
![]()
但是没有装pip
![]()
我们需要给他装一个pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip -V

但是为了紧跟时代步伐,需要安装一个python3环境
sudo yum install python36
python3 get-pip.py

测试一下,python3安装成功

同样给python3安装pip
pip3 install Pillow

通过pip安装Pillow

环境安装完成。
本文详细介绍如何在Centos系统中配置Python2和Python3环境,包括安装pip工具,使用pip安装Pillow库,以及验证Python环境的完整过程。
2941

被折叠的 条评论
为什么被折叠?



