Reputation: 303
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
Reputation: 103
For begin you must install pip for python3 with the command in linux :
sudo apt-get install python3-pip
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