I recently moved my os from debian7 to archlinux. On debian 7, the default python version is python2.7 but on archlinux the default is python3.4.
I once wrote a spider program using beautifulsoup4 on my debian7 but now I want to run this program on archlinux.
I use sudo pacman -S python-pip
to install pip and then use sudo pip install beautifulsoup4
. But this time this package goes into /usr/lib/python3.4/site-packages/
.
I know I can download bs4 to my spider's directory and run it with python2, but I just want to know how do you install packages using pip
since you have 2 python version installed. And btw if I change the default python link to python2*, will it break my system?