Answer the question
In order to leave comments, you need to log in
Why does pip install always for python2.7 in all versions?
When trying to install any libs on a freshly installed Ubuntu 14.04 LTS, pip keeps doing it for the 2.7 version of python with an error
Requirement already satisfied (use --upgrade to upgrade): selenium in /usr/local/lib/python2.7/dist-packages
Answer the question
In order to leave comments, you need to log in
sudo apt-get install python3 python-pip python3-pip
sudo pip install <something> # для 2.7
sudo pip3 install <something> # для 3
sudo apt-get install python-virtualenv
virtualenv -p python3 --no-site-packages venv
source venv/bin/activate
pip install <something>
The answer is very simple: by default, Ubuntu uses version 2.7, resp. pip is set to 2.7, if you rearrange Python to 3 in Ubuntu, then pip will be under the 3rd Python and everything will be good.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question