Skip to content

Instantly share code, notes, and snippets.

@xingfeT
Forked from iDoka/install-pip3-on-centos7.md
Created September 26, 2021 10:27
Show Gist options
  • Save xingfeT/e2f24a76aae86a21d7690d99e6944bb2 to your computer and use it in GitHub Desktop.
Save xingfeT/e2f24a76aae86a21d7690d99e6944bb2 to your computer and use it in GitHub Desktop.
How to install pip3 on CentOS 7 Linux?

Install pip3 on CentOS 7

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment