AlphaCentauri
AlphaCentauri

Reputation: 303

How to install a Python 3 package, system wide, using 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?

Upvotes: 3

Views: 10614

Answers (1)

CookieHacker
CookieHacker

Reputation: 103

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>

Upvotes: 2

Related Questions