I'm new to Ubuntu and I'm trying to learn python. I use pyCharm IDE and python 3.5 but now when I'm trying to install libraries using the
sudo pip command they are installing to python 2.7, so when I'm running my script I get
ImportError: No module named ...
How should I install libraries via pip for Python 3?