Trying to install pip3 in Amazon Linux 2
Asked Answered
T

2

10

I did the following and can't get pip3 installed. Any help is appreciated!

sudo yum install python3 pip3
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Package python3-3.7.9-1.amzn2.0.2.x86_64 already installed and latest version
No package pip3 available.
Nothing to do

I ran sudo yum update previous to this with no issues.

The posts I am finding state that this should work.

This is in the latest AMI on Amazon Linux 2.

I have setup notes from a system I brought up a year ago and this was working then. Did they break something?

Tague answered 22/4, 2021 at 17:42 Comment(3)
sudo yum update && sudo yum install python3-pip (dash, not space).Sulphurize
docs.aws.amazon.com/elasticbeanstalk/latest/dg/… this should helpAmharic
did my solution worked for you?Amharic
L
13

It is python3-pip. Try the following.

sudo yum update && sudo yum install python3-pip
Levigate answered 22/4, 2021 at 18:18 Comment(1)
No package python3-pip availableUtgardloki
A
5

As mentioned in the docs. Invoking Python version 3 directly by using the python3 command instead of python ensures that pip is installed in the proper location, even if an earlier version of Python is present on your system.

this works for me

  • sudo yum install python37
  • curl -O https://bootstrap.pypa.io/get-pip.py
  • python3 get-pip.py --user
  • to verify pip --version
Amharic answered 22/4, 2021 at 18:30 Comment(2)
No package python37 availableUtgardloki
check your OS derivative, if it is Debian it will 3.7Amharic

© 2022 - 2024 — McMap. All rights reserved.