Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install a Python 3 package, system wide, using pip?

Tags:

python-3.x

pip

I don't want to use virtualenv. I want to install system wide, as root.

How do I make pip install a package for Python 3?

If I simply do

pip install <package name>

It installs it for Python 2.

This is specifically what happens for chatterbot when I do:

pip install chatterbot

As root.

How do I make it install chatterbot for Python 3?

like image 872
AlphaCentauri Avatar asked May 23 '26 20:05

AlphaCentauri


1 Answers

Install pip for python3

For begin you must install pip for python3 with the command in linux :

sudo apt-get install python3-pip

Usage

After you have just to use this command for your package (Warning : The package may not exist for python3 for the moment)

pip3 install <package name>
like image 90
CookieHacker Avatar answered Jun 04 '26 11:06

CookieHacker