python 3.8 'No module named pip'
2
0
Entering edit mode
3.8 years ago
amandanm • 0

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 • 43k views
ADD COMMENT
0
Entering edit mode

Try using pip3 instead of pip.

ADD REPLY
2
Entering edit mode
3.8 years ago

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
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode
2.8 years ago
linehammer ▴ 10

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.

ADD COMMENT

Login before adding your answer.

Traffic: 2592 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6