Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set default python version for pip?

OS: Mac OS X 10.11.3

I have Python 2.7.10 and Python 3.4.3.

When I pip install some_package pip installs package for Python 2.7.10, but I want to install package for Python 3.4.3.

How I can set default Python or install package for 3.4.3?

like image 940
A. Innokentiev Avatar asked Jan 23 '16 07:01

A. Innokentiev


People also ask

In which Python version pip is included by default?

Key terms. pip is the preferred installer program. Starting with Python 3.4, it is included by default with the Python binary installers.

Does Python 3.10 support pip?

Pip is not working for Python 3.10 on Ubuntu - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.

Does Python 3.9 support pip?

Once the path is added, open a fresh CMD window and type pip --version . Show activity on this post. I found that for Python 3.9 if you enter the command as py -m pip install , the installation initiates as expected.


1 Answers

Much like the python/python3 executables, pip also has two variants. You can use pip3 to install Python 3 packages.

like image 85
Mureinik Avatar answered Oct 22 '22 15:10

Mureinik