CentOS 7 still have Python 2.7 as the default tool. EPEL repository comes up with Python 3. Here’s the way to setup Python 3 and pip3 on CentOS environment.
Type on terminal:
sudo yum install -y python34-setuptools
sudo easy_install-3.4 pip
or try:
curl https://bootstrap.pypa.io/get-pip.py | python3.4
now we can:
pip3 -V
sudo pip3 install pyserial