This is a test version of Biostars. For the public version, visit https://www.biostars.org.
python 3.8 'No module named pip'

I'm trying to install biopython on my Mac (python 3.8) using pip but get the error message 'No module named pip'

How do I use pip? Do I need to install it?

rna-seq

Try using pip3 instead of pip.

2 answers

Download get-pip.py script to install pip:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Install pip:

python3 get-pip.py

Install biopython:

python3 -m pip install biopython

or

pip3 install biopython

If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they all work.

Upvote|Bookmark|Accept

On Mac using brew is a better option as apt-get is not available. Command:

brew install python

In case you have both python2 & python3 installed on machine

python2.7 -m ensurepip --default-pip

simply should solve the issue.

If instead you are missing pip from python 3 then simply change python2.7 to python3 in the command above.

Log in to answer this question.